Luminance
Luminance is the only brightness measure you can measure with an instrument. It says how much light a surface emits or reflects toward the eye, taking into account that the eye responds differently to different wavelengths.
Definition
Luminance is measured in candelas per square meter (cd/m², informally "nits"). It is radiant power weighted by the eye's sensitivity curve V(λ), which peaks at 555 nm (see the model of the eye). The V(λ) curve is the ȳ(λ) function of CIE XYZ, so the Y component is luminance.
| Source | Luminance |
|---|---|
| moonless night sky | about 0.0001 cd/m² |
| office monitor, white | about 100-300 cd/m² |
| HDR display, highlights | 1000 cd/m² and more |
| white paper in sunlight | about 10,000-30,000 cd/m² |
Relative luminance
Color work rarely needs luminance in cd/m². Relative luminance is usually enough: Y in 0..1 or 0..100, where 1 (or 100) is white. For sRGB it is computed from the linear components:
Green contributes over 71% of luminance, red 21%, blue under 7%. That is why pure blue looks dark and pure green bright. The full conversion is on the CIE XYZ and RGB page.
Luminance versus luma
Television and image compression use a similar-looking formula, but on gamma-encoded values:
This is luma, written Y' with a prime. It is cheaper to compute, but it is not luminance: for saturated colors the two differ noticeably. For our color luma (Rec. 601) is 0.437 and luminance 0.182. More in the article on YUV and YIQ.
WCAG contrast
The WCAG accessibility guidelines judge text legibility by the ratio of the relative luminances of text and background:
WCAG level AA requires 4.5:1 for normal text and 3:1 for large text. This brick orange is just above the threshold on both white and black. A slightly lighter shade would no longer work for text on white.
The 0.05 constant approximates ambient flare on a screen. The WCAG 2 formula is criticized for poorly reflecting the contrast of light text on dark backgrounds. The newer APCA method computes contrast differently, but WCAG 2 remains the binding standard.