Color Contrast Checker

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 element
0:1
Normal textAA needs 4.5:1
Normal textAAA needs 7:1
Large textAA needs 3:1
Large textAAA needs 4.5:1
UI componentsAA needs 3:1

Accessible text color suggestions

For AA (4.5:1)
For AAA (7:1)

How to use this tool

  1. Pick or type a text color and a background color in hex format, such as #1f2937.
  2. Check the contrast ratio and the pass or fail result for each WCAG level.
  3. 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.

Link copied!