Does anyone know if there's a formula for calculating a color's luminosity from its RGB values?