Skip to content
XUtilHub

Color Contrast Checker – WCAG AA & AAA Ratio Test

Check the contrast ratio between text and background colors against WCAG 2 AA and AAA, with a live preview and one-click fixes that pass.

  • Free, no sign-up
  • Runs in your browser, nothing uploaded

About the Contrast Checker

Make sure your text is readable for everyone. Enter a text and background color to get the WCAG contrast ratio, pass or fail results for normal text, large text and icons, and the nearest colors that pass.

Key features

  • WCAG 2 contrast ratio
  • AA and AAA for normal and large text
  • Icons and borders (3:1) check
  • Live preview with text, button and icon
  • One-click fixes that pass
  • HEX, RGB, HSL and color names

Why contrast matters

Low-contrast text is one of the most common accessibility problems on the web. It's hard to read for people with low vision, older readers and anyone using a phone outdoors. Accessibility laws in many countries point to the WCAG standard, and Google's Lighthouse audit checks it too.

WCAG contrast requirements

ContentAAAAA
Normal text4.5:17:1
Large text (24 px, or 18.66 px bold)3:14.5:1
Icons, borders, focus rings3:1–
Logos and disabled controlsNo requirementNo requirement

Common color pairs

TextBackgroundRatioResult
#000000#ffffff21:1AAA
#333333#ffffff12.6:1AAA
#767676#ffffff4.5:1AA
#999999#ffffff2.8:1Fail
#ffffff#2563eb5.2:1AA
#ffffff#f973162.8:1Fail

Color shades generator, color blindness simulator and color picker.

How to use the Contrast Checker

  1. Enter a color code, use the picker, or start from a preset.
  2. Adjust the options; the preview updates instantly.
  3. Check the result, including contrast and how it looks in context.
  4. Copy the CSS, Tailwind or HEX code, or download it.

Frequently asked questions

What contrast ratio do I need?

WCAG 2 level AA needs 4.5:1 for normal text and 3:1 for large text. Level AAA needs 7:1 for normal text and 4.5:1 for large text. Icons, form borders and focus outlines need 3:1.

What counts as large text?

Text at least 24 px (18 pt) in regular weight, or at least 18.66 px (14 pt) in bold.

How are the suggested fixes chosen?

The tool keeps the hue and saturation of your color and changes only its lightness, finding the closest version that reaches the target ratio, so the color still feels like yours.

Is gray text on white accessible?

Often not. Light grays such as #999999 on white only reach about 2.8:1. #767676 is the lightest gray that passes AA (4.5:1) on white.

Are these design tools free?

Yes. Every tool is free with no sign-up, and you can use the colors and code in personal and commercial projects.

Do you upload my images?

No. The color blindness simulator and every other tool run entirely in your browser, so your images and colors stay on your device.

Which code formats can I copy?

HEX, RGB and HSL values, plain CSS, CSS variables, SCSS variables, and Tailwind classes or theme config for both Tailwind v3 and v4.

What is a good contrast ratio?

WCAG AA asks for at least 4.5:1 for normal text and 3:1 for large text, icons and borders. AAA asks for 7:1 for normal text.

Last updated:

Related Design tools