Color Contrast Checker | WebToolsUneed
Color Contrast Checker
Check the WCAG contrast ratio between text and background colors and get accessible color suggestions instantly.
Large text sample
This is how normal body text looks with your chosen colors. Accessible text is easy to read for everyone, including people with low vision.
Button or UI elementAccessible text color suggestions
How to use this tool
- Pick or type a text color and a background color in hex format, such as #1f2937.
- Check the contrast ratio and the pass or fail result for each WCAG level.
- If your colors fail, click Use this on a suggestion, then copy the CSS.
Frequently Asked Questions
What is a good contrast ratio?
WCAG AA requires at least 4.5:1 for normal text and 3:1 for large text and UI components. AAA requires 7:1 for normal text and 4.5:1 for large text.
What counts as large text?
Text that is at least 24px regular, or at least about 18.7px bold.
How are the suggestions created?
The tool keeps the hue and saturation of your text color and adjusts only its lightness, in whichever direction needs the smallest change, until the target ratio is met.
🔒 Processing is performed in your browser. Your colors are never uploaded or stored. No account or software installation is required.