Calculates the relative luminance of a color according to WCAG 2.0.
Relative luminance represents the relative brightness of any point in a colorspace, normalized to 0 for darkest black and 1 for lightest white.
The color to analyze.
A number between 0 (darkest black) and 1 (lightest white) representing the relative luminance.
Calculates the relative luminance of a color according to WCAG 2.0.
Relative luminance represents the relative brightness of any point in a colorspace, normalized to 0 for darkest black and 1 for lightest white.