Contrast Checker

The Complete Color Contrast & Accessibility Guide

How WCAG contrast ratios are calculated, what AA and AAA actually require, and how to fix common accessibility failures.

How the Contrast Ratio Is Calculated

WCAG defines contrast using each color's relative luminance - a measure of how bright a color appears, weighted by how the human eye perceives red, green, and blue differently.

(L1 + 0.05) / (L2 + 0.05)
L1  Relative luminance of the lighter color
L2  Relative luminance of the darker color

Each channel (R, G, B) is first linearized to account for how monitors render color, then combined using the weights 0.2126 (red), 0.7152 (green), and 0.0722 (blue) - green contributes the most to perceived brightness.

WCAG AA vs AAA

LevelWho it's forNormal / Large text
AAStandard legal & commercial baseline4.5:1 / 3:1
AAAEnhanced accessibility, government/health sites7:1 / 4.5:1

Common Contrast Failures

Light gray text on whiteA very common brand-styling mistake - often lands around 2.5:1, well below AA.
Low-contrast placeholder textForm placeholder text is frequently too light to read, especially on mobile.
Link text near body text colorLinks that aren't visually distinct fail contrast against their surrounding non-link text.

How to Fix Contrast Failures

  • Darken the text or lighten the background (or both) until the ratio checker above shows a pass for your target level.
  • Don't rely on color alone to convey meaning - pair colored status indicators with an icon or label too.
  • Test your actual brand palette pairs, not just black-on-white - the failures usually show up in secondary/muted text and button states.

Frequently Asked Questions

Do I need AAA compliance?

Most legal accessibility requirements (like the ADA and EN 301 549) reference AA, not AAA. AAA is a stricter, optional goal.

Does contrast checking cover color blindness?

Not directly - contrast ratio is about luminance (brightness), not hue. A color-blind-safe palette still needs adequate contrast on top of distinguishable hues.

Is 3:1 ever acceptable for normal text?

No - 3:1 only satisfies AA for large text (18pt+/14pt bold+) and for UI component/graphical object contrast, not normal body text.

Check Contrast Now