Color Contrast Checker: WCAG AA/AAA & Color Blindness

Color Contrast Checker: WCAG AA/AAA & Color Blindness

Check if text and background pass WCAG 2.2 AA and AAA, get the nearest passing text color and preview 4 types of color blindness. Free, in your browser.

Updated November 2026

Reviewed by Rafael Duarte

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 HEX code: 6 digits, or 3 digits like F0A, which expand when you leave the field. "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 text color that reaches 4.5:1 while keeping your hue; the Color Blindness Simulation shows the pair as seen with 4 types of color blindness.

What this color contrast checker does

More than a contrast ratio calculator

Automatic accessible color suggestion

When normal text fails AA, it lightens or darkens only the text color, keeping hue and saturation, to the nearest shade that reaches 4.5:1. The background is never changed.

4 color blindness simulations

Deuteranopia, Protanopia, Tritanopia, and Achromatopsia, plus Normal vision, each with its own simulated contrast ratio.

Live text and UI preview

Renders your color pair as a 24px heading, 14px body text, and two buttons. With a simulation active, the preview switches to the simulated colors.

Copy the ratio with a shortcut

Press Shift+Enter while no text field has focus to copy the current contrast ratio, ready to paste into an audit report.

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
Gray #949494 on white
3.03:1 — passes AA for large text only
Dark mode: #E0E0E0 text on #121212
14.19:1 — passes AAA with room to spare

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.

Accessibility audits

The WCAG 2.2 Reference table lists all 5 checks with the current value and the threshold for each, so you can go through them one by one.

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.

Assuming the suggested fix also passes AAA

The Accessibility Fix panel targets the AA minimum of 4.5:1, not the 7:1 of AAA, and only appears when normal text fails AA. If your project requires AAA, adjust the text color by hand until the ratio reaches 7:1.

Why use this contrast checker

Low contrast is the single most common accessibility failure on the web, present on 83.9% of home pages according to the WebAIM Million 2026 report. In the US, the revised Section 508 standards for federal ICT incorporate WCAG 2.0 Level AA, and the 2024 ADA Title II rule for state and local governments adopts WCAG 2.1 Level AA; both include the 4.5:1 contrast minimum.

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 (the level most rules reference) vs. AAA (enhanced)

AA (minimum)
AAA (enhanced)
Normal text
4.5:1
7:1
Large text (18pt ≈ 24px, or 14pt bold ≈ 18.66px)
3:1
4.5:1
UI components
3:1
not defined
Where it's used
the usual target for audits; Section 508 (WCAG 2.0) and the ADA Title II rule (WCAG 2.1) require AA
critical content, when a project needs extra margin

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