Askem
Glossary

Color Contrast Ratio

Color contrast ratio measures the luminance difference between text and background colors to evaluate readability for people with low vision.

Last updated: 2026-03-20

What is color contrast ratio?

Color contrast ratio measures how different two colors appear to the human eye. It compares a foreground color (usually text) to its background and expresses the result as a ratio like 4.5:1. A ratio of 1:1 means no difference at all. The maximum, 21:1, is pure black on pure white.[1]

Why does color contrast matter?

Good contrast helps everyone read more easily. It is essential for people with low vision, older adults, users with color vision deficiency (color blindness), and anyone reading a screen in bright sunlight. Poor contrast is also a common barrier for people with cognitive accessibility needs.

According to WebAIM's 2024 study of one million home pages, low contrast text was the single most common accessibility error, found on 81% of pages tested.[1] For large, content-heavy websites — government information portals, banking dashboards, insurance claim forms — poor contrast can make critical information unreadable.

How is contrast ratio calculated?

WCAG uses a formula based on relative luminance — a measure of perceived brightness:

Contrast ratio = (L1 + 0.05) / (L2 + 0.05)

L1 is the lighter color's luminance. L2 is the darker color's. The formula weights each color channel to match how the human eye works: green contributes most to perceived brightness, blue the least.[1]

You do not need to calculate this by hand. Many free tools do it for you automatically.

What does WCAG require?

WCAG sets three contrast rules:

1.4.3 Contrast (Minimum) — Level AA

  • Normal text: at least 4.5:1
  • Large text (18px+ or 14px bold+): at least 3:1
  • Logos and decorative text are exempt

1.4.6 Contrast (Enhanced) — Level AAA

  • Normal text: at least 7:1
  • Large text: at least 4.5:1

1.4.11 Non-text Contrast — Level AA (added in WCAG 2.1)

  • Buttons, form inputs, focus indicators, and informational icons: at least 3:1 against surrounding colors[2]

Level AA is the legal standard under EU and UK accessibility rules. That makes 4.5:1 for body text the target most organizations must meet.

How do you test contrast ratios?

Several tools make testing simple:

  • Browser DevTools — Chrome and Firefox show contrast ratios in their accessibility panels and color pickers.
  • WebAIM Contrast Checker — A free online tool at webaim.org/resources/contrastchecker/
  • Automated scanners — Tools like axe, Lighthouse, and WAVE flag contrast failures as part of standard scans.
  • Design tools — Figma and Adobe XD have built-in or plugin-based contrast checkers, so designers can fix issues before code is written.

Automated tools work well for solid-color backgrounds. Text over images, gradients, or videos requires manual checking.

What are the most common contrast failures?

These patterns show up in audits again and again:

  • Light grey text on white — Popular in minimalist design but often below 4.5:1.
  • Placeholder text in form fields — Styled at very low contrast to look "inactive." WCAG still applies to it.
  • Brand colors — Two mid-tone brand colors that look different to a designer may fail the ratio test.
  • Icon-only buttons — Under WCAG 2.1, icons used as controls must meet the 3:1 non-text contrast rule.
  • Disabled elements — Technically exempt from WCAG contrast rules, but many organizations keep them at minimum contrast for usability.

Content and design teams should check brand palettes against WCAG before locking in color choices. IT teams should add contrast checks to their automated testing pipeline. Legal teams should know that contrast failures are among the easiest issues for regulators to detect. Contrast problems also surface frequently in formal accessibility audits.

What about WCAG 3.0?

The current contrast formula has known weaknesses, especially with blue text and very bold fonts. WCAG 3.0, still in development, proposes a new method called APCA (Advanced Perceptual Contrast Algorithm) that handles more font sizes, weights, and color combinations. APCA is not yet an official standard.[3]

How Askem Helps

For large content sites — government portals, banking dashboards, insurance forms — contrast failures often appear in bulk when a template or brand color changes. Continuous accessibility monitoring tools check contrast ratios on every page against WCAG 1.4.3 and 1.4.11 automatically. Tools like Askem catch those failures immediately and send an alert, rather than letting them go undetected until the next audit cycle. Reports show which pages are affected, making it easy for design and content teams to prioritize fixes.

Sources

  1. W3C — WCAG 2.2 Success Criterion 1.4.3 Contrast (Minimum): https://www.w3.org/TR/WCAG22/#contrast-minimum
  2. W3C — WCAG 2.2 Success Criterion 1.4.11 Non-text Contrast: https://www.w3.org/TR/WCAG22/#non-text-contrast
  3. W3C — WCAG 3.0 APCA contrast method (Working Draft): https://www.w3.org/TR/wcag-3.0/

Get a free accessibility report

Enter your domain and email. We'll send your report within 24 hours.