WCAG Contrast Checker
Check colour contrast for accessibility — AA/AAA pass-fail with live preview.
- 👨💻 Developer Tool
- ✓ Free
- ✓ No sign-up
- ✓ Private — runs in your browser
- ✓ Any device
#0f172a or the color picker.Tints your text toward black/white until it passes, preserving the rest of your palette.
Ratios use the official WCAG 2.x relative-luminance formula — everything runs in your browser, nothing is uploaded. You've checked ratios. 👁️
Why you’ll love WCAG Contrast Checker
How to use it
- 01
Open it
No download and no login — the tool is ready right at the top of this page.
- 02
Use it
Enter your details or start interacting. Everything updates live as you go.
- 03
Get your result
Copy, download or share your result in a single tap. That’s it.
About WCAG Contrast Checker
This checker measures the contrast ratio between a text color and a background color using the official WCAG 2.x relative-luminance formula — the same math accessibility auditors and browser dev tools use. Every calculation runs locally in your browser, and the ratio updates live as you type hex codes, drag the color pickers, or (in Chromium browsers) eyedropper-pick colors straight off your screen.
Contrast ratios run from 1:1 (identical colors) to 21:1 (pure black on pure white), and WCAG sets different pass marks depending on what the color pair is used for. Level AA requires 4.5:1 for normal body text and 3:1 for large text and UI components; the stricter AAA level requires 7:1 and 4.5:1. Rather than making you remember those thresholds, the tool grades all five checks at once in a pass/fail grid and gives the pair an overall grade from Fail to AAA.
When a combination fails, you do not have to guess your way to a fix. The suggestion engine nudges your text color toward black or white in small steps — preserving its hue as much as possible — until it crosses the AA or AAA line, and shows you the exact hex that passes along with its new ratio. One click applies it, and you can copy the finished pair as ready-to-paste CSS.
Popular uses
- ✦ Verify body-text and button colors pass AA before shipping a design system
- ✦ Audit a live website by eyedropper-picking its actual rendered colors
- ✦ Find the closest accessible shade of a brand color that currently fails
- ✦ Check icon and input-border colors against the WCAG 2.1 non-text 3:1 rule
- ✦ Copy a passing color pair as CSS straight into your stylesheet
Frequently asked questions
What counts as "large text" in the WCAG checks?
How is the contrast ratio actually calculated?
My brand color fails AA — how do I fix it without redesigning the palette?
Does the 3:1 rule apply to anything besides text?
Can I check the colors of an existing website or design mockup?
Is WCAG Contrast Checker free to use?
Is my code or data sent anywhere?
More developer tools
All developer toolsPeople also use
We built this. We can build yours.
WCAG Contrast Checker is one of our free tools. Need a website, app, AI agent or automation? Fixed price — and you own the code.