Skip to main content
ToolsHub

Color Contrast Checker

Instantly check if your color combination meets WCAG accessibility standards. See pass/fail for AA and AAA at normal and large text sizes.

Updated

Files never leave your browser

Hello World

The quick brown fox jumps over the lazy dog

Small text sample (14px)

Contrast Ratio

21.00:1

WCAG Results

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

Preset Pairs

How to use Color Contrast Checker

A comprehensive WCAG 2.1 color contrast checker that tests foreground/background pairs against AA and AAA standards with a live text preview. See exactly how your color combination looks with normal text, large text, and bold text rendered at realistic sizes. Share results via URL for design reviews and accessibility audits.

  1. Enter or pick the foreground (text) color using HEX, RGB, or the color picker.
  2. Enter or pick the background color.
  3. Review the live preview showing how text actually looks with this combination.
  4. Check the WCAG AA/AAA pass/fail badges for each text size category.
  5. Copy the shareable URL to include the result in a design review or audit report.

Your data never leaves your device — 100% private processing.

Beyond the ratio: real-world readability

A passing contrast ratio does not guarantee readability in all contexts. Font weight, letter spacing, line length, and font size all influence legibility. Thin (100–300 weight) fonts at the 4.5:1 minimum often feel harder to read than bold fonts at the same ratio. Users with dyslexia benefit from slightly wider letter spacing and avoiding pure black (#000) on pure white (#fff) — a softer off-white background like #f8f8f8 reduces visual stress. Always validate results with real users, especially for body text in content-heavy interfaces.

Accessibility audit workflow

Start by extracting your design system's text/background color combinations: primary text on page background, secondary text, disabled text, link colors, button labels on button backgrounds, placeholder text on input backgrounds, and badge/tag text. Test each pair here. Document failures with the actual ratio and the nearest passing color adjustment. For designs already in production, browser devtools (Chrome's CSS overview or the Accessibility pane) can identify contrast failures at scale across the whole page.

Worked examples

Maximum contrast

Inputs: #000 on #fff

Result: 21:1 — passes AA and AAA at every text size

Mid-grey on white

Inputs: #767676 on #fff

Result: 4.54:1 — passes AA for normal text

Light grey fails

Inputs: #999 on #fff

Result: 2.85:1 — fails AA for normal text

WCAG 2.1 minimum contrast ratios

WCAG 2.1 minimum contrast ratios
Content typeAAAAA
Normal text (under 18pt)4.5:17:1
Large text (18pt+ or 14pt bold)3:14.5:1
UI components & graphics3:1

Glossary

WCAG 2.1 AA
The baseline web accessibility conformance level required by most legal standards (ADA, EN 301 549, AODA).
WCAG 2.1 AAA
The enhanced accessibility level — stricter ratios, not always achievable for all text on all backgrounds.
Luminance
The perceived brightness of a color, calculated using the WCAG relative luminance formula.
Design token
A named variable (e.g., --color-text-primary) that centralizes color decisions in a design system.

Related reading

Free · No spam

Get weekly tool tips & updates

New tools, power-user tips, and productivity hacks — delivered free every Friday.

No spam, ever. Unsubscribe with one click.

Related Color & Design

Explore all Color & Design.