Color Contrast Checker (WCAG)
Test a text and background color pair against WCAG 2.1. Get the contrast ratio, a live preview and clear pass or fail results for AA and AAA, plus a suggested fix when it fails.
Large text sample
The quick brown fox jumps over the lazy dog. Small body text needs more contrast than large headings.
UI componentWCAG 2.1 results
Each row is a separate requirement.
Suggested fixes
Same hue and saturation, adjusted only in lightness.
How to use Contrast Checker on KickSolve
Three quick steps, no account needed.
Why choose KickSolve
Built for speed, privacy and clean results.
What you can do with Contrast Checker
Everything this tool offers.
About Contrast Checker on KickSolve
How contrast is measured and how to read the results.
What is a contrast ratio?
WCAG defines contrast ratio as (L1 + 0.05) divided by (L2 + 0.05), where L1 is the relative luminance of the lighter color and L2 that of the darker one. Luminance is worked out from the linear red, green and blue values, weighted 0.2126, 0.7152 and 0.0722. The result runs from 1:1 (no contrast at all) to 21:1 (black on white).
WCAG levels and thresholds
Level AA is the usual legal and policy target. It asks for 4.5:1 on normal text, 3:1 on large text, and 3:1 on user interface parts such as input borders, icons and focus rings. Level AAA is stricter, at 7:1 for normal text and 4.5:1 for large text.
What counts as large text?
WCAG treats text as large when it is at least 18 point (about 24 px), or at least 14 point (about 18.7 px) and bold. Anything smaller is normal text and needs the higher ratio.
Why the ratio is never rounded up
A ratio of 4.499 does not meet 4.5. This tool cuts the ratio down to two decimals, so it can never show a pass for a pair that actually fails. Some checkers round to the nearest hundredth instead, so the same pair can show a value one hundredth higher elsewhere.
What this checker does not cover
Passing the numbers does not guarantee readability. Thin fonts, tiny sizes, busy backgrounds and text over images can still be hard to read. This tool tests the WCAG 2.x ratio, which is the version most accessibility rules currently refer to. It does not calculate APCA, the method proposed for WCAG 3.
Need a color in another format? Convert it with the Color Converter. For text over a gradient, check the lightest and darkest stops from the Gradient Generator, and minify your finished stylesheet with the HTML, CSS and JS Minifier.
WCAG contrast requirements
The minimum ratios this checker tests.
| Content | Level | Minimum ratio | Success criterion |
|---|---|---|---|
| Normal text | AA | 4.5:1 | 1.4.3 Contrast (Minimum) |
| Large text | AA | 3:1 | 1.4.3 Contrast (Minimum) |
| Normal text | AAA | 7:1 | 1.4.6 Contrast (Enhanced) |
| Large text | AAA | 4.5:1 | 1.4.6 Contrast (Enhanced) |
| UI components and graphics | AA | 3:1 | 1.4.11 Non-text Contrast |
Example color pairs and their ratios
Real values from the same formula this tool uses.
| Text on background | Ratio | AA normal text | AAA normal text |
|---|---|---|---|
#000000 on #FFFFFF | 21.00:1 | Pass | Pass |
#767676 on #FFFFFF | 4.54:1 | Pass | Fail |
#777777 on #FFFFFF | 4.47:1 | Fail | Fail |
#FFFFFF on #4F46E5 | 6.28:1 | Pass | Fail |
#FFFFFF on #F0572D | 3.43:1 | Fail | Fail |
#1F2937 on #F3F4F6 | 13.33:1 | Pass | Pass |
Frequently asked questions
Quick answers.
What is a good contrast ratio?
For body text aim for at least 4.5:1, which meets WCAG AA. A ratio of 7:1 or more meets AAA. Large text and UI components need at least 3:1 for AA.
What is the minimum contrast for WCAG AA?
Normal text needs 4.5:1, large text needs 3:1, and user interface components and graphics need 3:1.
What counts as large text?
Text that is 18 point (about 24 px) or larger, or 14 point (about 18.7 px) or larger and bold.
Does the checker handle transparent colors?
Yes. A transparent text color is blended with the background, and a transparent background is blended with white, before the ratio is calculated.
Why does it show a slightly lower ratio than another tool?
WCAG does not allow rounding up, so this tool truncates to two decimals. For example, #777777 on white has an exact ratio of about 4.478:1, shown here as 4.47:1, while a tool that rounds would show 4.48:1. Both agree that it fails AA for normal text.
Does it check APCA?
No. This tool tests the WCAG 2.x contrast ratio. APCA is a different method proposed for WCAG 3 and gives different numbers.
How is the suggested color chosen?
It keeps your text color's hue and saturation and changes only the lightness, searching both lighter and darker for the smallest change that reaches the target ratio on your background.
Is my data uploaded?
No. Every calculation happens in your browser and nothing is sent to a server.
More free tools from KickSolve
Related tools.