contrast ratio

A number from 1:1 to 21:1 comparing the relative luminance of text and its background, used by WCAG to judge readability.

In more detail

The formula is (lighter + 0.05) divided by (darker + 0.05), using relative luminance. WCAG level AA requires at least 4.5:1 for normal text and 3:1 for large text and for the edges of controls and icons. Black on white is 21:1.

Related terms

Taught in

References