Free browser tool · No sign-up
Text Contrast Checker
Check a color pair. See the text thresholds it meets.
What the result tells you
This checker compares one opaque sRGB text color with one solid background. It shows the contrast ratio and separate WCAG 2.2 AA and AAA text thresholds. A passing pair is not a complete website accessibility result. Check actual size, weight, states and context before using it.
Accepted values are #RGB or #RRGGBB, with the # sign. Spaces around the value are ignored. Alpha hex, named colors, rgb(), gradients and image backgrounds are not supported.
The text thresholds
For normal text, AA needs at least 4.5:1 and AAA needs at least 7:1. For large text, AA needs at least 3:1 and AAA needs at least 4.5:1. Large text is at least 18 points in regular weight or 14 points in bold. The sample uses 24 CSS pixels at regular weight when large text is selected.
Read the W3C explanations of minimum text contrast and enhanced text contrast for the scope and exceptions. These text results do not test icons, focus indicators or every other accessibility criterion.
How the ratio is calculated
Each red, green and blue channel is divided by 255. A channel at or below 0.04045 is divided by 12.92. Otherwise it becomes ((channel + 0.055) / 1.055) raised to 2.4. Relative luminance is 0.2126 × red + 0.7152 × green + 0.0722 × blue.
Contrast ratio = (lighter luminance + 0.05) / (darker luminance + 0.05). The tool uses the W3C definition and the unrounded ratio for decisions. Display rounding never changes a failure into a pass.
A near-threshold example
With normal text, #777777 on #FFFFFF gives about 4.478:1 and fails AA. Changing the text to #767676 gives about 4.542:1 and passes normal AA, but still fails normal AAA. This is an arithmetic example, not a claim that either pair fixes a whole website.
#959595 on white gives about 2.995346:1. It can round to 3.00 with two decimals, but it remains below 3 and fails large-text AA. Black and white give 21:1; identical colors give 1:1.
Use the result on a real page
Inspect the actual resolved foreground and background, including hover and error states. Transparent overlays and images may create different colors from the ones in a design file. The sample intentionally shows a failing pair when you enter one; instructions and results sit outside it.
Follow the website accessibility guide to check keyboard use, labels, errors and the booking handoff as separate tasks. Return to all tools for other planning tasks.
Common questions
Does this scan my website?
No. It calculates the colors you enter. It does not fetch a URL, inspect a screenshot or certify WCAG compliance.
Must every brand color pass for every purpose?
No. Test the pair for its actual text use. Decorative brand elements and functional labels have different roles; do not use this text-only result to certify non-text elements.
Does the form send my colors to AI?
No. The calculation runs in this browser. No AI or paid research service receives the form inputs.