Free color contrast checker

A color contrast checker measures the contrast ratio between a text color and its background. WCAG AA needs at least 4.5:1 for normal text and 3:1 for large text; AAA needs 7:1 and 4.5:1.

Check text and background colors against WCAG 2.2 AA and AAA contrast thresholds, with a live preview.

Test a captured website palette. Open accessible website color palettes and use the one-click contrast links on any card, or paste a shared test link to reload the same foreground and background pair.

Enter a six-digit hex color.

Enter a six-digit hex color.

Normal text preview — The quick brown fox jumps over the lazy dog.

Large text preview — Aa 123

Contrast ratio: 17.74:1

Normal text AA (4.5:1)Pass
Normal text AAA (7:1)Pass
Large text AA (3:1)Pass
Large text AAA (4.5:1)Pass

WCAG text contrast thresholds

WCAG 2.2 measures contrast using relative luminance. The ratio is calculated before display rounding.

Text sizeAAAAA
Normal text4.5:17:1
Large text3:14.5:1

These text thresholds follow the W3C guidance on contrast minimum. A two-color check cannot establish whole-site accessibility: also review images, focus and interaction states, keyboard operation, and other WCAG criteria.

Use real website palettes

Explore recorded color schemes and choose a pair to test in the checker. To test every pair in a small palette at once, use the palette accessibility checker.

Frequently asked questions

What contrast ratio passes WCAG AA?

WCAG 2.2 success criterion 1.4.3 (Contrast Minimum, level AA) asks for a contrast ratio of at least 4.5:1 between normal text and its background, and at least 3:1 for large text. The stricter AAA level (criterion 1.4.6) raises those to 7:1 and 4.5:1. Ratios run from 1:1, the same color twice, up to 21:1, black on white.

What counts as large text?

WCAG treats text as large when it is at least 18 point at regular weight or at least 14 point bold. In CSS pixels that is roughly 24px regular or 18.66px bold, because one point equals about 1.333px. Anything smaller is normal text and needs the higher ratio, so small labels, captions and helper text are usually the hardest to pass.

Do icons, buttons and form borders need contrast too?

Yes. WCAG 2.2 success criterion 1.4.11 (Non-text Contrast, level AA) asks for at least 3:1 between meaningful graphics or user interface parts and the colors next to them. That covers input borders, icons that carry meaning, focus indicators and chart lines. Disabled controls and purely decorative graphics are exempt from this requirement.

Does a passing color pair make my website accessible?

No. A passing ratio shows that one foreground and background pair meets the contrast criteria, but it does not establish whole-site accessibility. Check every text style, the hover, focus and disabled states, text placed over images or gradients, keyboard operation, alternative text and the other WCAG requirements that apply to your pages.

More color tools

Image tools

CSS generators

Image & SVG tools

Typography & units

More free tools

All free tools