Color Contrast Checker
Check if your text and background colors meet WCAG AA or AAA accessibility standards in real time.
WCAG Results
Share
Includes a FocusFlow tag — share with your team or post on social.
Recent
The quick brown fox
Bold text at 14px qualifies as large text under WCAG 2.1.
Normal body text. WCAG AA requires a 4.5:1 ratio so that people with low vision can read comfortably across paragraphs, labels, and UI copy.
Caption, helper text, timestamp, or fine print.
WCAG 2.1 Thresholds
Large text = 18px+ regular weight, or 14px+ bold. Checking perceptual contrast? Try our APCA Contrast Checker — the candidate method for WCAG 3.
CSS Snippet
Palette Contrast Matrix
Enter your design system colors — one per line or comma-separated. Get a full foreground × background contrast matrix with instant pass/fail results. Click any cell to load that pair into the checker above.
AAA ≥ 7:1
AA ≥ 4.5:1
AA Large ≥ 3:1
Fail < 3:1
Enter colors on the left and click "Check Palette" to generate the matrix.
How the contrast ratio is calculated
WCAG 2.1 defines contrast as a ratio between the relative luminance of two colours — a measure of how much light each one emits, weighted for how sensitive human vision is to red, green and blue.
Each channel is converted from its 0–255 value to a 0–1 range, linearised to undo the
sRGB gamma curve, and then combined as
L = 0.2126R + 0.7152G + 0.0722B.
Green carries the most weight because the eye is most sensitive to it. The two luminance values are
then compared as
(Llighter + 0.05) ÷ (Ldarker + 0.05),
which gives a value between 1:1 (identical colours) and 21:1 (pure black on pure white).
The 0.05 term models the light that a real screen reflects even when displaying black, which is why the scale tops out at 21 rather than running to infinity. Note that this model ignores font size and weight and treats dark-on-light the same as light-on-dark — limitations the APCA contrast checker is designed to address.
Frequently Asked Questions
Guides that go with this tool
WCAG color contrast explained
AA vs AAA, large text rules, and where each number comes from
How to check color contrast
A practical workflow for auditing a palette
Accessible color palettes
Building a palette that passes before you design with it
All of FocusFlow's free tools are listed on the tools page, and the blog covers the reading-accessibility topics behind them.
