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.
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.
Nudge the text color to #E9EDF2 for a 4.59:1 ratio.
WCAG contrast thresholds
Body copy under 18px (or under 14px bold).
18px+ regular, or 14px+ bold headings.
Icons, borders, form fields, chart elements.
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.
Trusted for Accessible Design
“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.”
“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.”
“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.”
“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.”
Love using our calculator?
Related color tools
Similar Calculators
More tools in the same category
WCAG 2.1 AA Compliance Scanner
Comprehensive WCAG 2.1 AA accessibility compliance checker
Screen Reader Compatibility Checker
Test website compatibility with screen readers and assistive technologies
Accessibility Score Calculator
Calculate overall accessibility score and get improvement recommendations
WCAG 2.2 AAA Compliance Checker
Advanced WCAG 2.2 AAA compliance checking
Section 508 Compliance Auditor
US Section 508 accessibility compliance
Keyboard Navigation Tester
Test keyboard navigation accessibility
Often Used Together
Complementary tools for complete analysis
Related Articles
Dive deeper with our expert guides and tutorials related to Color Contrast Checker
exact WCAG 2.2 contrast ratio · AA / AAA / UI · live preview · one-click fix · in-browser · Last reviewed: 2026-06