What Is a Color Contrast Batch Checker?
A color contrast batch checker tests a list of foreground-background pairs against WCAG in one place. Add each pair you actually use in your interface (button text on button fill, body text on card, link on page background) and every row shows its ratio and pass/fail results at once. Batch checking a list of known pairs is one workflow; surfacing every possible pair is another. The Palette Contrast Matrix gives the matrix view used for design system audits.
This is essential for design systems with many colors. A palette of 10 colors creates 90 possible combinations — checking these one at a time is impractical. Listing the pairs you actually ship surfaces the failing ones instantly, letting designers and developers fix accessibility issues early in the design process.
How to Use This Tool
- Add your pairs — Type a hex code (3- or 6-digit) or use the colour picker for the text and background of each pair, and add as many rows as you need.
- Read each row — Every row shows the contrast ratio, a live text sample, and pass/fail for AA, AA Large, AAA and AAA Large.
- Check the summary — The pass and fail counts at the top show how many pairs meet AA for normal text (4.5:1).
- Need every combination? — Use the Palette Contrast Matrix, which checks every pair in a palette at once.
Worked example: the pairs that sit right on the line
On October 12, 2026 we ran common UI pairs through the tool's own formula (WCAG 2.2 relative luminance) and compared what it shows with what a one-decimal checker would show.
| Text on background | Exact ratio | This tool shows | Rounded to 1 decimal | AA normal text |
|---|---|---|---|---|
| #777777 on white | 4.478 | 4.47 | 4.5 (looks like a pass) | Fail |
| #767676 on white | 4.542 | 4.54 | 4.5 | Pass |
| Tailwind gray-500 #6B7280 on white | 4.835 | 4.83 | 4.8 | Pass |
| Tailwind gray-400 #9CA3AF on white | 2.539 | 2.53 | 2.5 | Fail (placeholder grey) |
| White on Tailwind blue-500 #3B82F6 | 3.678 | 3.67 | 3.7 | Fail; AA large only |
| White on blue-600 #2563EB | 5.169 | 5.16 | 5.2 | Pass |
| #FF3366 on #0B0D17 | 5.458 | 5.45 | 5.5 | Pass |
| #FF3366 on white | 3.549 | 3.54 | 3.5 | Fail; AA large only |
- Ratios are cut, not rounded, to two decimals. WCAG's thresholds are exact (Understanding 1.4.3): 4.478 fails 4.5. #777777 is the classic trap, one step lighter than the passing #767676; a checker that rounds shows it as 4.5 and green.
- "Large text" is 24 px regular or about 18.7 px bold (18 pt / 14 pt bold). The AA Large and AAA Large columns only apply at those sizes, so white on blue-500 is fine for a big heading but not for a 16 px button label; use blue-600.
- The 0.03928 vs 0.04045 question does not matter here. WCAG 2.x's text quotes 0.03928 as the sRGB linear threshold, the sRGB standard uses 0.04045; the tool uses the latter. No 8-bit channel value falls between them, so every hex colour gets the same ratio either way.
- Opaque hex colours only. Inputs are 3- or 6-digit hex; for a semi-transparent colour, blend it with its background first and check the result. Text over images or gradients needs checking at the worst point.
- Not covered: icons, borders and focus rings fall under 1.4.11 Non-text Contrast (3:1 against adjacent colours), and APCA from the WCAG 3 draft is a different scale; neither is calculated here.
- The summary counts AA normal text (4.5:1) as pass or fail per row; rows with an invalid hex are left out of both counts.
Sources
Checked on .
Frequently Asked Questions
📖 Learn More
Related Article Color Contrast & WCAG Guide → Related Article How to Check WCAG Contrast →Built by Derek Giordano · Part of Ultimate Design Tools