Skip to content

Color Contrast Checker

Check the contrast ratio between text and background colours against WCAG 2 AA and AAA requirements.

  • Free, no sign-up
  • Runs in your browser
  • Reviewed Nov 6, 2026

How to use the Color Contrast Checker

  1. Pick or type the text colour.
  2. Pick or type the background colour.
  3. See the ratio and pass/fail for each WCAG level, with a live preview.

How it works

Relative luminance L = 0.2126R + 0.7152G + 0.0722B using linearised sRGB channels. Contrast ratio = (L_lighter + 0.05) ÷ (L_darker + 0.05). WCAG 2 thresholds: AA 4.5:1 (normal text), 3:1 (large text and UI components); AAA 7:1 and 4.5:1.

Worked examples

Grey on white

#777777 on #ffffff is 4.48:1 — just below AA for normal text, but passes for large text.

Limitations and assumptions

  • Ratios are truncated (not rounded) to two decimals, matching how WCAG is usually applied.
  • WCAG 2 contrast doesn't cover every readability factor such as font weight or thin strokes.

Frequently asked questions

What counts as large text?

At least 18pt (24px) regular or 14pt (about 18.66px) bold.

Sources

G

Built and reviewed by Guru G

Calculation logic is covered by automated tests against known values. Last reviewed Nov 6, 2026. Found a problem? Let us know — see our editorial policy.