Colour contrast refers to the difference in luminance between foreground text
and its background. Sufficient contrast ensures that text is readable by users
with low vision, colour blindness, or those viewing screens in bright conditions.
[1]
WCAG defines contrast as a ratio between the relative luminance of the lightest
and darkest colours being compared.
[1]
| Criterion | Minimum ratio | Applies to |
|---|---|---|
| 1.4.3 AA (normal text) | 4.5:1 | Text under 18pt or 14pt bold |
| 1.4.3 AA (large text) | 3:1 | Text 18pt+ or 14pt+ bold |
| 1.4.11 (UI components) | 3:1 | Focus indicators, form borders, icons |
| 1.4.6 AAA | 7:1 | Enhanced contrast for normal text |
The following do not have contrast requirements:
WCAG 1.4.1 requires that colour is not used as the only visual means of
conveying information, indicating an action, prompting a response, or
distinguishing a visual element.
[3]
Common failures include:
Always pair colour with a secondary indicator — an icon, a pattern, a text
label, or an underline.
WCAG 1.4.11 extends contrast requirements to user interface components and
graphical objects. This includes:
Use a colour contrast analyser to test foreground/background combinations.
The W3C provides a contrast checking algorithm, and tools such as the WebAIM
Contrast Checker or browser DevTools accessibility panels can calculate ratios
directly from inspected elements.
Test in context — gradients, image backgrounds, and semi-transparent overlays
require checking the actual rendered colours, not the CSS values alone.
Last edited Apr 5, 2026, 7:18 PM · P**** J****