Skip to content
WCAG 2.2 · AA / AAA · normal · large · UI

Color Contrast Checker

Check whether a text and background pair meets WCAG accessibility contrast — instantly, with a live preview at every text size, a one-click fix to pass, and pass/fail badges for AA, AAA and UI components.

Live preview
Large heading

The quick brown fox

Normal body text (16px). Whereas recognition of the inherent dignity and the equal and inalienable rights of all members of the human family is the foundation of freedom.

Small text (14px) — fine print, captions and labels live down here, where contrast matters most of all.

Solid buttonOutline button
Contrast ratio
3.67:1
Poor
1:14.5721:1
Normal textAAAAA
Large textAAAAA
UI / Graphics3:1
Fix to pass AA

Nudge the text color to #E9EDF2 for a 4.59:1 ratio.

Text color
Lightness4%
Background
Lightness42%
Reference

WCAG contrast thresholds

Normal text

Body copy under 18px (or under 14px bold).

AA 4.5:1AAA 7:1
Large text

18px+ regular, or 14px+ bold headings.

AA 3:1AAA 4.5:1
UI & graphics

Icons, borders, form fields, chart elements.

AA 3:1AAA
Field notes

Why contrast is the accessibility you can't skip

Contrast ratio is a single number, from 1:1 (identical colors) to 21:1 (pure black on pure white), that measures the difference in relative luminance between two colors. WCAG sets thresholds because roughly one in twelve people has some form of color or vision difference, and millions more read on phones in bright sunlight, on cheap panels, or while tired. Good contrast isn't a niche accommodation — it's what makes text legible for everyone, in every condition.

The thresholds aren't arbitrary. 4.5:1 for normal text and 3:1 for large text (AA) are the legal and practical baseline cited by the ADA, EAA and most procurement rules; 7:1 and 4.5:1 (AAA) are the gold standard for body-heavy reading. Larger text needs less contrast because thick strokes are easier to resolve — which is why a headline can pass at a ratio where the same color would fail as fine print. The UI threshold (3:1) extends the same logic to icons, input borders and chart elements that carry meaning.

Luminance, not lightness, is what counts — and that surprises people. Two colors with the same HSL lightness can have very different luminance because the eye is far more sensitive to green than to blue. That's why a saturated blue on black can fail while a muted yellow on black sails through. The honest test is the ratio, not how “different” the colors look to you, which is exactly why this checker computes the real WCAG formula and shows a live preview at three sizes rather than asking you to eyeball it.

When a pair fails, you usually don't need to abandon the colors — just push the text's lightness toward one end until it passes, which the one-click fix does for you while keeping the hue. Build the rest of your system around colors that pass: assemble the palette in the generator, expand a primary into accessible shades with the Tailwind generator, and verify each text pairing here before it ships.

Color Contrast Checker FAQs

Have more questions? Contact us

Trusted for Accessible Design

4.9
Based on 6,240 reviews

Exactly the WCAG numbers our audit tooling reports, with a preview at all three text sizes so I can see normal vs large pass differently. The one-click fix that keeps the hue and just moves lightness is what I wish every contrast tool did. This is now the link I send designers.

H
Hannah Brooks
Accessibility engineer
June 20, 2026

Fast, exact, and the UI/graphics 3:1 badge reminds me to check button and border contrast, not just text. Random pair is great for testing edge cases. The luminance explanation finally made it click why my 'obviously different' blue-on-black was failing.

R
Raj Malhotra
Front-end developer
May 27, 2026

The live preview with real buttons and small print is the honest test — eyeballing always lied to me. Apply-fix nudges my brand color just enough to pass AA without looking wrong. Clean, no signup, and the thresholds reference is genuinely useful.

S
Sara Lindgren
Product designer
April 15, 2026

We bake AA into our tokens and this is the quick gut-check before a pairing ships. Would love batch checking of multiple pairs, but tabbing through them here is fast enough. Accurate to the spec, which is all I really need from a contrast checker.

D
Daniel Osei
Design systems lead
March 2, 2026

Love using our calculator?

Connected instruments

Related color tools

Learn More

Related Articles

Dive deeper with our expert guides and tutorials related to Color Contrast Checker

Loading articles...

exact WCAG 2.2 contrast ratio · AA / AAA / UI · live preview · one-click fix · in-browser · Last reviewed: 2026-06