Color Contrast Batch Checker

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

  1. 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.
  2. Read each row — Every row shows the contrast ratio, a live text sample, and pass/fail for AA, AA Large, AAA and AAA Large.
  3. Check the summary — The pass and fail counts at the top show how many pairs meet AA for normal text (4.5:1).
  4. 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 backgroundExact ratioThis tool showsRounded to 1 decimalAA normal text
#777777 on white4.4784.474.5 (looks like a pass)Fail
#767676 on white4.5424.544.5Pass
Tailwind gray-500 #6B7280 on white4.8354.834.8Pass
Tailwind gray-400 #9CA3AF on white2.5392.532.5Fail (placeholder grey)
White on Tailwind blue-500 #3B82F63.6783.673.7Fail; AA large only
White on blue-600 #2563EB5.1695.165.2Pass
#FF3366 on #0B0D175.4585.455.5Pass
#FF3366 on white3.5493.543.5Fail; AA large only

Frequently Asked Questions

What is a contrast batch checker?+
A contrast batch checker tests several foreground-background pairs against WCAG at once instead of one at a time. Here you list the pairs you use and each row is checked against AA and AAA. To test every combination of a palette, use the Palette Contrast Matrix.
What are WCAG contrast requirements?+
WCAG 2.1 and 2.2 require a minimum contrast ratio of 4.5:1 for normal text (Level AA) and 7:1 for enhanced contrast (Level AAA). Large text (at least 18pt, about 24px, or 14pt bold, about 18.7px) needs 3:1 for AA and 4.5:1 for AAA.
How many colors can I check at once?+
There is no fixed limit: add as many rows as you need. Each row is one foreground-background pair. For every combination of a palette (a 10-colour palette has 90 ordered pairs), the Palette Contrast Matrix is the faster route.
What output does the tool provide?+
Each row shows the contrast ratio, a text sample in those colours, and pass or fail for AA, AA Large, AAA and AAA Large, with a pass/fail count across all rows. Ratios are cut to two decimals rather than rounded, because WCAG thresholds are exact: a pair at 4.497:1 fails 4.5:1. There is no file export; copy the values you need.
Can I import colors from my design system?+
Not by pasting a file: enter each colour as a hex code or with the colour picker. To find the nearest Tailwind colour for a value, use the Color to Tailwind Finder.
Does it check WCAG 3.0 APCA contrast?+
No. The tool calculates only the WCAG 2 contrast ratio, which is the same formula in WCAG 2.1 and 2.2. APCA, the perceptual contrast method proposed for WCAG 3, is not calculated: WCAG 3 is still a W3C draft, and its contrast method is not final.
How many pairs can I check in one batch?+
There is no hard limit, and the maths is local, so results update as you type. Rows are added one at a time; for a full design-token sweep across a palette, the Palette Contrast Matrix checks every combination at once.
Does the report distinguish between AA and AAA contrast targets?+
Yes. Each row shows the ratio with four results side by side: AA (4.5:1), AA Large (3:1), AAA (7:1) and AAA Large (4.5:1), so you can read off normal and large text without changing a setting.

📖 Learn More

Related Article Color Contrast & WCAG Guide → Related Article How to Check WCAG Contrast →

Built by Derek Giordano · Part of Ultimate Design Tools

Privacy Policy · Terms of Service