1. Home
  2. Accessibility
  3. Text contrast in WCAG

Text contrast in WCAG: thresholds and common mistakes

Contrast is the simplest way to make text more accessible, and the one most often broken.

Accessibility1 min readUpdated:
A colour swatch book and a palette of shades

WCAG 2.2 thresholds

ElementLevel AALevel AAA
Normal text4.5:17:1
Large text3:14.5:1
UI components and meaningful graphics3:1—

Large text is roughly 24 px at regular weight or roughly 18.66 px bold. Logos and purely decorative elements are excluded.

Where mistakes happen

  • light grey text on white “for lightness”;
  • text over photographs without an overlay;
  • form placeholders with too little contrast;
  • links that differ from text only by hue, with no underline or other cue;
  • disabled elements that users still need to recognise.

How to test

  1. Take real colours from CSS, not from the mock-up.
  2. Test all states: normal, hover, focus, active, disabled.
  3. Test text over gradients and images at the lightest and darkest points.
  4. Use our contrast checker to get the ratio and a nearest-shade hint.

Contrast is a minimum. Comfortable reading comes from contrast, size, weight and spacing together.