The Color Contrast Checker on FreeToolZones tells you whether a text color is readable on a background color, using the same contrast ratio calculation behind the Web Content Accessibility Guidelines, known as WCAG. You pick a text color and a background color, and the tool instantly shows the contrast ratio, a live preview with large and normal text samples, and a pass or fail verdict for WCAG levels AA and AAA at both text sizes. Readable text is not a matter of taste alone: low contrast excludes people with low vision, older readers, and anyone reading on a phone in bright sunlight, and it makes every reader work harder than necessary. This tool turns a vague worry about whether colors “look okay” into a definite number and a clear verdict, so you can fix problems before you publish instead of discovering them through complaints.
What Is the Color Contrast Checker?
The Color Contrast Checker is an accessibility testing tool for foreground and background color pairs. It starts with dark text (#0E1F18) on a white background (#FFFFFF), a combination that passes comfortably, so you can see a healthy result before you change anything. As soon as you change either color, the tool recalculates the contrast ratio, recolors the preview, and updates the verdict table, all without any button press.
The contrast ratio is a number from 1:1, for identical colors with no contrast at all, to 21:1, for black on white, the maximum possible. It is calculated from the relative luminance of the two colors, which is a measure of how light or dark each color appears to human vision, with green light weighted most heavily. The tool shows the ratio to two decimal places, for example 12.45:1, so you can compare pairs precisely and track small improvements as you darken text or lighten a background.
The verdict table reports WCAG levels AA and AAA for normal text and large text. WCAG requires a ratio of at least 4.5:1 for normal text at level AA, and 7:1 at level AAA. For large text, defined in the tool preview as 18 point and above, the requirements are 3:1 at AA and 4.5:1 at AAA. The table shows “Pass” or “Fail” in each cell, so you can see at a glance whether a pair is safe for body copy, safe only for headings, or unsafe for both. A hint below the table restates the four thresholds so you do not have to remember them.
The live preview is as important as the numbers. It shows a large, bold text sample and a normal body text sample rendered in your chosen colors, so you can judge readability with your own eyes as well as with the ratio. Numbers and eyesight together catch more problems than either alone: a pair can pass the ratio test yet still feel uncomfortable in a long paragraph, and a pair that looks fine in a short heading can fail badly at body size.
How to Use the Color Contrast Checker
Checking a color pair takes only a few steps, and the results update live.
- Pick the text color. Use the color control labeled “Text color” to choose the foreground color. This is the color of the words themselves, whether body copy, a heading, a link, or a button label.
- Pick the background color. Use the color control labeled “Background color” to choose the color behind the text. This might be a page background, a card, a banner, or a button fill.
- Read the contrast ratio. The result panel shows the ratio as a large statistic, for example 7.23:1. Higher is better. A ratio below 3:1 will fail every WCAG text test, while a ratio above 7:1 passes them all.
- Check the verdict table. Read the AA and AAA rows for normal text and large text. Aim for a Pass at AA for normal text as a minimum for any published content. A Pass at AAA is a stronger result worth aiming for in body copy when you can achieve it without harming the design.
- Judge the preview. Read the large text sample and the body text sample in the preview box. If the body text feels strained to read, treat that as a warning even if the ratio passes, and consider darkening the text or lightening the background further.
- Swap the colors if needed. Click “Swap Colors” to exchange the text and background colors. This is useful when you are testing a reversed treatment, such as light text on a dark card versus dark text on a light card, because the ratio is the same either way but the visual impression can differ.
- Adjust until the pair passes. Change either color in small steps and watch the ratio and verdicts update. Darkening the text color or lightening the background color increases the ratio; moving the colors closer together decreases it.
Work through every text and background combination on a page, not just the main body text. Links, button labels, captions, form labels, placeholder text, footer text, and text on images or gradients each need their own check, because a color that passes on white may fail on a tinted card or a photograph.
Key Features of the Color Contrast Checker
- Instant contrast ratio. The ratio is calculated from relative luminance and shown to two decimal places, updating live as you change either color.
- WCAG AA and AAA verdicts. The table gives a clear Pass or Fail for AA and AAA at both normal and large text sizes, using the standard thresholds of 4.5:1 and 7:1 for normal text and 3:1 and 4.5:1 for large text.
- Live text preview. Large bold text and normal body text samples are rendered in your exact colors, so you can judge readability visually as well as numerically.
- Swap Colors button. One click exchanges the text and background colors, making it easy to test reversed color treatments.
- Threshold reminder. A hint below the table restates the WCAG requirements, so you can interpret the verdicts without looking them up elsewhere.
- No input beyond two colors. The tool needs only a text color and a background color, so a check takes seconds and there is nothing else to configure.
- Private and immediate. All calculation happens in the browser, with no uploads and no waiting.
Practical Use Cases
Checking body text before a site launch. Before publishing a new page, test the body text color against the page background, then test the same text against every card, tint, and banner background used on the page. Fix any pair that fails AA for normal text by darkening the text or lightening the background, and re-check until the table shows Pass.
Reviewing button labels. Buttons often use white text on a brand color, which can fail if the brand color is light. Test the button label color against the button fill color. If it fails, darken the fill, use a darker text color, or add a border and a darker hover state, then re-check the revised pair.
Auditing an existing website. Work through a site section by section, listing each text and background pair in a spreadsheet with its ratio and verdict. This audit often finds problems in footers, captions, and secondary text that nobody noticed, because those areas use muted colors that look elegant but read poorly.
Designing slide decks and documents. Presentation text is read at a distance and often in bright rooms, so contrast matters even more than on a website. Test heading and body colors against each slide background, including any tinted or photographic backgrounds, before finalizing the template.
Choosing link and accent colors. Links must be distinguishable from surrounding text as well as readable on the background. Test a candidate link color against the background first, then check that it differs enough from the body text color to be recognizable as a link. The checker handles the first test directly.
Testing dark mode designs. Dark themes reverse the usual pattern, with light text on dark backgrounds. Use the Swap Colors button to move between light and dark treatments, and check every text color in the dark palette against the dark background, because colors that pass on white often fail on dark grey or navy.
Teaching accessibility basics. In a classroom or team workshop, pick a fashionable low-contrast pair, such as light grey text on white, and show the failing ratio and the strained preview. Then darken the text step by step until the verdict flips to Pass. The live feedback makes the concept concrete in a way that a lecture alone cannot.
Tips and Best Practices
Aim for AA normal text as a minimum. A Pass at AA for normal text, 4.5:1, should be the floor for all published text. Treat AAA, 7:1, as the goal for body copy, where readers spend the most time and where strain accumulates.
Check every background, not just white. Text on cards, banners, images, and gradients faces different backgrounds than text on the page background. Test each combination separately, including hover and focus states, which sometimes use different colors.
Do not rely on large-text passes for body copy. A pair that passes only for large text is not safe for paragraphs, captions, or form labels. Use large-text passes only for genuine large text, such as headings at 18 point and above.
Adjust in small steps. When a pair fails narrowly, darken the text or lighten the background gradually and watch the ratio climb. Small adjustments often reach a Pass without changing the design character, while large jumps can overshoot into harsh, muddy colors.
Remember that contrast is not the only readability factor. Font size, weight, line spacing, and line length all affect readability. A passing ratio with tiny, thin text can still be hard to read, so pair contrast checks with sensible typography.
Test on real devices. Screens vary in brightness and calibration, and sunlight washes out displays. A pair that passes comfortably on a bright office monitor may struggle on a phone outdoors, so leave some margin above the minimum ratio where you can.
Document the pairs you approve. Keep a list of approved text and background combinations with their ratios in your style guide. Future contributors can then reuse safe pairs instead of inventing new ones that need re-testing.
Limitations
The Color Contrast Checker tests one text color against one solid background color at a time. It does not test text over photographs, gradients, patterns, or translucent overlays, where the effective background varies across the text. For those cases, test against the lightest part of the background for dark text, or the darkest part for light text, as a conservative check, and consider adding a solid overlay or shadow to stabilize the background. The tool also does not test non-text elements, such as icons, chart lines, or form borders, which have their own WCAG contrast requirements for user interface components.
The ratio is a mathematical measure based on relative luminance, not a guarantee of comfort. Two pairs with the same ratio can feel different, because hue, font, and context matter too, so always judge the preview with your own eyes as well. The tool does not check color blindness, so a pair can pass the contrast test yet still be confusing if information is carried by color alone; use the Color Blindness Simulator for that check, and never rely on color as the only way to convey meaning. The tool does not accept HEX code typing, so you must choose colors with the picker controls, and it does not save results, so record any ratio you need to keep. Finally, passing AA or AAA is a strong signal but not a legal guarantee; accessibility requirements vary by jurisdiction and context, so treat the verdicts as guidance within a broader accessibility review.
Frequently Asked Questions
What contrast ratio do I need for normal text?
WCAG level AA requires at least 4.5:1 for normal text, and level AAA requires at least 7:1. For large text, 18 point and above, the requirements are 3:1 at AA and 4.5:1 at AAA. The tool shows Pass or Fail against all four thresholds.
What is the highest possible contrast ratio?
The maximum is 21:1, for black text on a white background, or white text on black. The minimum is 1:1, for two identical colors with no contrast at all.
Does swapping the colors change the ratio?
No. The contrast ratio is the same whichever color is text and whichever is background, because it is calculated from the two luminance values. The Swap Colors button is still useful because the visual impression of a reversed treatment can feel different.
Can I test text over a photograph or gradient?
Not directly. The tool tests solid color pairs. For a photograph or gradient, test your text color against the lightest or darkest part of the background as a conservative check, and consider adding an overlay to make the background more uniform.
Is passing AA enough for accessibility?
It is the widely used minimum for text contrast, but accessibility includes much more than contrast: keyboard navigation, alternative text, heading structure, and more. Use this tool as one part of a broader accessibility review.
Why does a pair pass but still look hard to read?
The ratio measures luminance difference only. Font size, weight, and hue also affect comfort, and long passages strain the eyes more than short labels. Trust the preview as well as the number, and increase the ratio beyond the minimum when text feels strained.
Related Tools
Pair this checker with these tools on FreeToolZones: the Color Blindness Simulator shows how colors appear under different vision types; the Color Picker finds exact codes to adjust; the Tint and Shade Generator creates lighter and darker versions for better contrast; the Color Palette Generator builds palettes to test; and the CSS Gradient Generator helps you check text over gradient backgrounds. You can also return to the FreeToolZones homepage to browse all 500 tools.