function luminance(color) {
    return .2126 * color.r + .7152 * color.g + .0722 * color.b;
}
Returns the relative luminance of the color.
@param {Object} color - Color object that has {r, g, b}
@returns {number} Relative luminance