How to Check Color Contrast for Accessibility (WCAG)
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
- 1Open the Color Contrast Checker at /dev/contrast-checker.
- 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.
- 3Set your background color in the "Background color" field the same way — type a hex like #ffffff or use the swatch picker.
- 4Read the big contrast ratio at the top of the Result panel, shown as a number like 7.32 : 1.
- 5Check the "Normal text" row for AA and AAA pass/fail badges (green means pass, red means fail).
- 6Check the "Large text" row for AA and AAA — large means 18.66px bold or 24px and up, which has gentler thresholds.
- 7Glance at the live sample swatch underneath to see the two colors together as real text.
- 8Adjust either color until you get the Pass badges you need, then copy the hex values straight into your CSS or design file.
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?
Do I need to upload anything or sign up to use the contrast checker?
What counts as large text under WCAG?
How do I fix a color pair that fails the contrast check?
Tools used in this guide
Related guides
Paste any JSON Web Token to read its header and payload in seconds — free, private, and entirely in your browser.
Paste messy JSON, beautify or minify it, and catch errors instantly with this free in-browser JSON formatter.
Paste a JSON array of objects and get clean, spreadsheet-ready CSV in seconds — free, private, and entirely in your browser.