Developer

How to Check Color Contrast for Accessibility (WCAG)

4 min read Updated 30 June 2026

If text is too close in lightness to its background, people with low vision, color blindness, or just a glary screen struggle to read it. The Web Content Accessibility Guidelines (WCAG) put a number on that readability: the contrast ratio between text and background. A color contrast checker does the math for you and tells you whether a pair of colors passes.

Tooldrop's Color Contrast Checker at /dev/contrast-checker takes two colors, computes the WCAG ratio, and shows pass or fail for AA and AAA across normal and large text. It's free, needs no sign-up, has no limits, and runs entirely in your browser — your colors never leave your device.

Step by step

  1. 1Open the Color Contrast Checker at /dev/contrast-checker.
  2. 2Set your text color in the "Text color" field — type a hex value like #1a1a1a, or click the color swatch below it to pick one visually.
  3. 3Set your background color in the "Background color" field the same way — type a hex like #ffffff or use the swatch picker.
  4. 4Read the big contrast ratio at the top of the Result panel, shown as a number like 7.32 : 1.
  5. 5Check the "Normal text" row for AA and AAA pass/fail badges (green means pass, red means fail).
  6. 6Check the "Large text" row for AA and AAA — large means 18.66px bold or 24px and up, which has gentler thresholds.
  7. 7Glance at the live sample swatch underneath to see the two colors together as real text.
  8. 8Adjust either color until you get the Pass badges you need, then copy the hex values straight into your CSS or design file.
Try it now — it's free
Runs in your browser. No upload, no sign-up.
Open Color Contrast Checker

What the WCAG contrast ratios mean

Contrast ratios run from 1:1 (identical colors, invisible) to 21:1 (pure black on pure white). WCAG sets four thresholds the checker tests against. For normal body text, AA requires a ratio of at least 4.5:1 and AAA requires 7:1. For large text — defined as 18.66px bold or 24px and larger — the bar is lower because bigger shapes are easier to read: AA needs 3:1 and AAA needs 4.5:1.

AA is the level most legal and organizational accessibility standards reference, so treat 4.5:1 for body text as your practical minimum. AAA is the stricter, enhanced target; hitting it is a nice goal for body copy but isn't always realistic with brand colors. The checker shows all four results at once so you can see exactly where a color pair lands.

Reading your results and fixing failures

The number at the top is your contrast ratio; the badges below translate it into pass or fail for each level. If you see a red Fail on AA for normal text, the two colors are too similar in lightness to be reliable for body copy.

The fastest fix is to push the two colors further apart in lightness rather than hue — darken the text or lighten the background (or vice versa). Small nudges matter: going from a mid-gray to a slightly darker gray can flip a Fail to a Pass. Use the live sample swatch to sanity-check that the result still looks the way you want. If a failing pair is only used at large sizes — a headline or a big button label — check the "Large text" row, since it may already pass AA there even when normal text doesn't.

Why run a color contrast checker in your browser

Color values are harmless on their own, but the convenience of a tool that works instantly, without an account or upload step, is the real win. Tooldrop's contrast checker runs the WCAG algorithm right in your browser: you type colors, the ratio updates live, and nothing is sent to a server.

That means it's free with no sign-up and no usage limits, so you can check dozens of color pairs while iterating on a design system without hitting a paywall or a rate cap. Like most tools on Tooldrop, the processing happens on-device, which keeps it fast and keeps your work private.

Frequently asked questions

What contrast ratio do I need to pass WCAG?
For normal-size body text, WCAG AA requires a contrast ratio of at least 4.5:1, and the stricter AAA level requires 7:1. Large text (18.66px bold or 24px and larger) only needs 3:1 for AA and 4.5:1 for AAA. The Tooldrop checker shows all four results at once so you can see exactly which levels a color pair passes.
Do I need to upload anything or sign up to use the contrast checker?
No. The Color Contrast Checker at /dev/contrast-checker is free with no sign-up and no limits. You only enter two color values, and the entire calculation runs in your browser — nothing is uploaded to a server.
What counts as large text under WCAG?
WCAG defines large text as roughly 18.66px and bold, or 24px and up regardless of weight. Because larger letterforms are easier to read, large text gets gentler contrast thresholds (3:1 for AA instead of 4.5:1), which the checker reports on its own "Large text" row.
How do I fix a color pair that fails the contrast check?
Increase the difference in lightness between the two colors rather than just changing the hue. Darken the text or lighten the background until the AA badge turns green. Even small adjustments can flip a fail to a pass, and the live sample swatch lets you confirm the result still looks right.

Tools used in this guide

Related guides