Returns the luminosity of an html hex color. Used to measure the contrast of html color schemes for accessibility.