Color Contrast Checker

Color Contrast Checker

Free color contrast checker — verify WCAG 2.2 AA and AAA compliance instantly. Live preview, color blindness simulation, and accessible color suggestions....

Updated May 2026

Foreground (Text) Active
Hex Code
#
R 26
G 86
B 219
Background
Hex Code
#
R 255
G 255
B 255
Live Preview Rendering
Display (1.5rem / 24px)
The quick brown fox jumps
Body (0.875rem / 14px)

Good color contrast ensures text is readable for all users, including those with low vision or color blindness. Aim for WCAG 2.2 AA compliance to meet legal accessibility standards.

Compliance Results WCAG 2.2
Normal Text
AA PASS
AAA FAIL
Large Text
AA PASS
AAA PASS
UI Components
AA PASS
AAA N/A
Passes AA — Meets minimum standard Target for AAA Normal Text is 7:1

Accessibility Fix

Your colors pass AA!

No fix needed for normal text contrast.

Color Blindness Simulation

Sample Text
Simulated view
FG #1A56DB
BG #FFFFFF
Simulated ratio: 6.18:1 AA

WCAG 2.2 Reference

MetricCurrent ValueThresholdStatus
Normal Text (AA)6.18:14.5:1PASS
Normal Text (AAA)6.18:17:1FAIL
Large Text (AA)6.18:13:1PASS
Large Text (AAA)6.18:14.5:1PASS
UI Components (AA)6.18:13:1PASS

How the color contrast checker works

Two colors, instant WCAG compliance

1. Set text and background colors

Click a swatch to open the picker, or type a 6-digit HEX code directly. "Swap Colors" flips foreground and background instantly.

2. Read the compliance results

See the contrast ratio and AA/AAA pass-fail status for normal text, large text, and UI components in one view.

3. Fix the color or simulate color blindness

"Accessibility Fix" suggests the closest passing color that keeps your original hue; the simulator previews Deuteranopia, Protanopia, and more.

What this color contrast checker does

More than a contrast ratio calculator

Automatic accessible color suggestion

Finds the nearest WCAG-passing color while preserving your original hue, instead of just flagging a failure.

Simulates 5 types of color vision

Deuteranopia, Protanopia, Tritanopia, and Achromatopsia, plus normal vision, so you can see what colorblind users actually see.

Live text and UI preview

Renders your color pair as body text, large headings, and buttons so you can judge readability, not just a number.

Runs entirely in your browser

No color values are sent to a server, which makes it safe to check unreleased brand palettes.

Contrast ratio reference points

Common combinations and where they land

Combination
Ratio
Black on white (#000/#FFF)
21:1 — the maximum possible ratio
Medium gray #767676 on white
4.54:1 — passes AA by the smallest margin
Light gray #999999 on white
2.85:1 — fails, a common mistake on secondary text

When you'll reach for this tool

The most common scenarios among people who use it

Web and mobile design review

Check text, buttons, and form fields before shipping — catching a failing pair before launch is far cheaper than fixing it after.

Legal accessibility audits

ADA, Section 508, EAA, and WCAG audits all hinge on this ratio — the reference table maps each requirement to its threshold.

Dark mode contrast checks

The same WCAG ratios apply to dark themes — confirm your light text still clears the bar against a dark background.

Brand color accessibility

Check whether a brand color works as body text or a UI element, and find the closest passing alternative if it doesn't.

Common mistake? Start here

Trusting how different colors look, not the number

Two colors that look visually distinct can have almost identical luminance and still fail — always verify with the actual ratio.

Ignoring color blindness even after passing WCAG

WCAG measures luminance, not hue difference, so a red/green pairing can pass the ratio test and still be indistinguishable to colorblind users.

Forgetting that text size changes the requirement

Large text (18pt and up, or 14pt bold) only needs 3:1 instead of 4.5:1 — bumping the font size can save a color that otherwise fails.

Why use this contrast checker

Low contrast is the single most common accessibility failure on the web, present on 83.6% of home pages according to the WebAIM Million 2024 report. With the ADA, Section 508, and the EAA all citing WCAG contrast criteria, checking your colors is no longer optional for public-facing sites.

The automatic fix suggestion and color blindness simulation go further than a plain ratio calculator — they show you exactly how to resolve a failure and surface problems that the number alone won't reveal.

WCAG 2.2 contrast requirements

AA (legal minimum) vs. AAA (enhanced)

AA (minimum)
AAA (enhanced)
Normal text
4.5:1
7:1
Large text (18pt+ / 14pt+ bold)
3:1
4.5:1
UI components
3:1
not defined
Required by
ADA, Section 508, EAA, WCAG 2.2
critical content — aspirational

Frequently asked questions

It's a tool that calculates the contrast ratio between two colors — typically text and its background — and tells you whether it meets WCAG accessibility standards. This one also simulates color blindness and suggests accessible alternatives when a pair fails.

Resources

Related Tools