Template:RGBColorToLum/doc

Usage
Converts parameter 1 from a hex RGB value (#RRGGBB) to a W3C relative luminance value.