Color Properties

Relative Luminance

The luminance of a color normalized to a scale from 0 (black) to 1 (white), used as the basis for calculating contrast ratios.

Relative luminance is calculated from sRGB values using the formula L = 0.2126R + 0.7152G + 0.0722B (after linearizing each channel). The coefficients reflect the human eye's different sensitivity to each color: we perceive green as brightest, then red, then blue. This is the measure used by WCAG accessibility guidelines to determine contrast ratios between text and background colors. A higher relative luminance means the color appears brighter, and two colors with similar relative luminance will have poor contrast regardless of how different their hues are.

Try It Out

Related Articles