⚔️ WCAG Color Contrast Checker
Check foreground and background color contrast against WCAG 2.1 accessibility standards. Real-time results, color suggestions, and common presets.
Last updated: November 8, 2026 · By the BoltQuickTools team
Testing whether text is readable on its background
Gray text on a white card can look fine on your monitor and still fail an accessibility audit. Enter the two colors here to get the WCAG 2.x contrast ratio and a pass or fail for each text size and level.
Checking a pair
- Set Foreground (Text) and Background with the color squares or by typing a six-digit hex value. Results update as you type.
- Use the arrow button between them to swap the two colors.
- Read the Contrast Ratio and the five badges below it.
- Pick an entry under Common Color Pairs to load a known combination.
- If Suggested Colors to Pass WCAG appears, click a suggestion to apply it as the foreground.
Two pairs compared
| Check | #9CA3AF on #FFFFFF | #2563EB on #FFFFFF |
|---|---|---|
| Contrast Ratio | 2.54:1 | 5.17:1 |
| AA Normal Text (4.5:1) | Fail | Pass |
| AA Large Text (3:1) | Fail | Pass |
| AAA Normal Text (7:1) | Fail | Fail |
| AAA Large Text (4.5:1) | Fail | Pass |
| AA UI Components (3:1) | Fail | Pass |
For the gray, which is the Gray / White preset, the tool suggests #6D7788 at 4.52:1 for AA and #525966 at 7.05:1 for AAA. Both keep the same hue and saturation and only change lightness.
Where the tool's answer needs care
- Suggestions only appear below 4.5:1. A pair at 5.17:1 fails AAA Normal Text but shows no suggestions. To find a AAA value, lower the foreground's lightness yourself and watch the badge.
- The displayed ratio is rounded but the test is not.
#737373on#F8F9FAdisplays as 4.50:1 and fails AA Normal Text, because the unrounded ratio is about 4.498. A value that shows exactly the threshold may be just under it. - Six-digit hex only. Three-digit values are ignored and the previous result stays on screen. The field is capped at seven characters, so alpha cannot be entered.
- Transparency has to be flattened first. Semi-transparent text needs to be worked out against its actual background before you test it.
- The badges do not know your font size. WCAG's large text means at least 18pt regular or 14pt bold, about 24px or 18.66px. The preview's own caption has the two weights swapped, so go by those figures.
- Foreground only. Suggestions never adjust the background.
When the badges raise questions
Why is there no lighter suggestion for my gray text?
A chip appears only when some lightness of that hue reaches the target. Against pure white, nothing lighter than the current gray can reach 4.5:1, so only darker options are listed. On a mid-tone background you may get options in both directions, or no AAA option at all.
Why do AA Large Text and AA UI Components always match?
Both use the same 3:1 threshold. They are separate rules in WCAG: one covers large text, the other covers things like input borders and icons. A pass here only tells you the two colors meet the ratio. You still have to apply it to the right edges, such as the border of a field against the page behind it.
Does passing contrast cover color blindness?
No. Contrast measures relative brightness. Two colors can pass and still be hard to tell apart when a status relies on hue alone. Check that separately with the color blindness simulator, and read designing for color vision differences.
Where can I get HSL or CMYK for the result?
This page shows RGB and HSL under each input. For HSV, CMYK and copy buttons, use the color picker.