Color Contrast Checker — WCAG AA & AAA Ratio
Readable text starts with the right ratio.
At a glance
- Input:
- Two colors you pick or type
- Processing:
- Runs locally in your browser
- Privacy:
- Nothing you type is sent to a server
Last updated: 2026-11-08
Common use cases
- Checking whether body text is readable on a brand-color button
- Proving a design meets WCAG AA before a client handoff
- Picking a link color that passes AA on a white background
- Testing a dark-mode palette before shipping it
About this tool
Pick any two colors — a text color and a background — and get the WCAG 2.1 contrast ratio instantly, with AA and AAA pass/fail for normal text (AA 4.5:1, AAA 7:1) and large text (AA 3:1, AAA 4.5:1), plus a live preview of real text in your colors. Everything runs locally in your browser, nothing is uploaded. The check is luminance contrast only — it does not test color blindness.
How to use it
- Pick the foreground (text) color with the color picker or type a HEX code.
- Pick the background color the same way — or tap a preset pair to start from a known ratio.
- Read the ratio and the four badges: AA/AAA for normal text and for large text.
- Check the live preview — if the sample feels hard to read, nudge the lighter color lighter or the darker one darker.
Worked examples
Input: Foreground #1A1A1A · Background #FFFFFF
Output: 17.40:1 · Normal text: AA Pass, AAA Pass · Large text: AA Pass, AAA Pass
Near-black on white — the default pair, comfortably past AAA for every size.
Input: Foreground #767676 · Background #FFFFFF
Output: 4.54:1 · Normal text: AA Pass, AAA Fail · Large text: AA Pass, AAA Pass
The famous boundary gray: it passes AA for normal text by 0.04 — one shade darker and it fails.
Input: Foreground #FF0000 · Background #FFFFFF
Output: 4.00:1 · Normal text: AA Fail, AAA Fail · Large text: AA Pass, AAA Fail
Pure red on white fails AA for body text — use it for large headings or darken it first.
Practical tips
- Aim for 7:1 on body text when you can — AAA is the level that stays readable for the most people.
- When a color fails AA, nudge lightness first: a few points darker (or lighter) usually crosses the line without changing the hue.
- Test the real pair — text color on its real background, not on white — because the ratio depends on both colors.
Common mistakes
- Judging contrast by eye — a pair that looks fine can still fail AA; trust the ratio, not the feeling.
- Forgetting large text has lower thresholds — a color that fails AA for body text can still pass for headings.
- Checking only one direction — dark text on light and light text on dark are different pairs with different ratios.
How this compares
Most contrast checkers online show a single number and stop there. This one shows the ratio with all four WCAG verdicts — AA and AAA for normal and large text — plus a live preview of real text in your exact colors, preset pairs for the well-known boundaries, and one-click copy of the ratio, all local. The tradeoff: it checks luminance contrast only, not color blindness or font rendering — for those, pair it with a simulator and a real-device check.
Good to know
- Luminance contrast only — this does not check color blindness, font weight, or rendering on real screens.
- Large text means 24px or larger, or 18.66px bold and larger — smaller bold text still counts as normal text.
- HEX input needs 3 or 6 hex digits — named colors like 'red' are not accepted; use #FF0000.
- Ratios are rounded to two decimals — a pair at 4.49:1 fails AA even though it reads almost like 4.5:1.
Frequently asked questions
What is a good contrast ratio?
4.5:1 or higher passes AA for normal text — the bar most sites must meet. 7:1 passes AAA, the strictest level. Below 3:1, even large text fails AA, so treat 3:1 as the absolute floor and 4.5:1 as the working target.
What counts as large text in WCAG?
Text that is 24px or larger, or bold text at 18.66px (14pt) or larger. Large text gets lower thresholds — AA 3:1 and AAA 4.5:1 — because bigger, bolder letters are easier to read at lower contrast.
Does this check color blindness?
No — it checks luminance contrast only: how light one color is against the other. Two colors can pass the ratio and still be hard to tell apart for color-blind readers (red vs green is the classic case). Pair this with a color-blindness simulator for that check.
How do I use the preset pairs?
One tap sets both colors: black on white (21.00:1, the maximum), dark gray on white (4.54:1 — the AA boundary), red on white (4.00:1 — fails AA for normal text, passes for large text). Use them as starting points, then nudge the colors to your palette.
Is my data uploaded?
No. Picking colors and computing the ratio all run in your browser — the colors never leave this tab.

