The relative luminance of an sRGB colour, from 0 for black to 1 for white, as WCAG measures it for contrast.
Colour to measure; its alpha is ignored.
The relative luminance of an sRGB colour, from 0 for black to 1 for white, as WCAG measures it for contrast.