ColorPickerTools

WCAG Color Contrast Checker

Check the WCAG contrast ratio between two colors and see whether text passes AA or AAA.

Quick answer: Enter a text color and a background color; the tool shows the WCAG contrast ratio and reports pass or fail for AA and AAA at normal and large text sizes. AA needs 4.5:1 for normal text and 3:1 for large text.

Text color
Background
Normal weight text sample
Large text (18pt+) sample for the 3:1 rule
Body copy at 14px — the size that needs 4.5:1 to pass AA.
7.58:1
Contrast ratio
AA · normal textPass (4.5:1)
AA · large textPass (3:1)
AAA · normal textPass (7:1)
AAA · large textPass (4.5:1)
UI components (AA)Pass (3:1)

A readable fallback for this pair: change the text to #111827.

Core facts
StandardWCAG 2.1 contrast
AA4.5:1 normal · 3:1 large
AAA7:1 normal · 4.5:1 large
CostFree

What is a Color Contrast Checker?

A color contrast checker computes the contrast ratio between two colors and compares it to the WCAG accessibility thresholds. Contrast is what makes text legible: the ratio ranges from 1:1 (no contrast) to 21:1 (black on white), and the Web Content Accessibility Guidelines require at least 4.5:1 for normal text and 3:1 for large text at level AA.

Common Uses for Color Contrast Checker

  • Check that body text is readable before shipping a design
  • Find the lightest grey that still passes AA on a white background
  • Verify button and form label contrast for an accessibility audit

Why contrast ratios matter

Around one in twelve men has some form of colour vision deficiency, and everyone loses contrast sensitivity with age or in bright sunlight. A ratio threshold turns 'readable enough' into a measurable number, which is why WCAG uses it — and why search engines and accessibility audits reward it.

Fixing a failed ratio

If text fails, the fastest fix is usually to move the lightness, not the hue: darken the text or lighten the background while keeping the color identity. The checker updates the ratio as you adjust, so you can stop at the first value that passes instead of overshooting to black.

Large text and UI elements

Large text (about 18pt, or 14pt bold) only needs 3:1, because bigger glyphs stay legible at lower contrast. Non-text cues such as input borders, icon buttons and focus indicators also need 3:1 under AA, and they are the most commonly failed check on otherwise compliant sites.

Frequently Asked Questions

What ratio do I need?
WCAG AA requires 4.5:1 for normal text and 3:1 for large text (≈18pt, or 14pt bold). AAA raises these to 7:1 and 4.5:1.
How is the ratio calculated?
From the relative luminance of each color: (L1 + 0.05) / (L2 + 0.05), where L is the lighter and L2 the darker. The result runs from 1:1 to 21:1.
Is 3:1 enough for anything else?
Yes — non-text elements such as icons, borders and focus rings need at least 3:1 against their background under WCAG AA.
Does passing AA guarantee it looks good?
No. It guarantees legibility for a wide range of vision. Aesthetics and hierarchy are still your call.

More accessibility color tools

More Color Tools