← Back to the lab

Contrast Checker

Check the contrast ratio of any text and background color against WCAG 2.2 AA and AAA, then fix a failing pair with one click. Free, no sign-up.

How to use Contrast Checker

  1. Type a hex code or use the color picker for the text color and the background color.
  2. Read the contrast ratio and the WCAG 2.2 results for normal text, large text and UI components.
  3. If a level fails, use the one-click fix to adjust the text or the background just enough to pass.
  4. Copy the link to share the exact color pair with your team or in a design review.

About Contrast Checker

Color contrast is the difference in luminance between text and its background, written as a ratio from 1:1 (no contrast) to 21:1 (black on white). WCAG, the accessibility standard most products follow, sets minimums so text stays readable for people with low vision, color blindness or a screen in bright sunlight.

This contrast checker works as a contrast ratio calculator and a fixer at the same time: instead of guessing new colors, it moves only the lightness of the color you choose, keeping your brand hue, until the pair reaches AA (4.5:1) or AAA (7:1).

What it does

  • Contrast ratio plus pass/fail for AA and AAA, normal and large text, and UI components
  • One-click fix that adjusts the text or the background just enough to pass
  • Live preview with headings, body text, buttons and icons
  • Shareable URL for every color pair

FAQ

What contrast ratio does WCAG require?

WCAG 2.2 AA requires 4.5:1 for normal text and 3:1 for large text (24px, or 18.66px bold) and for UI components. AAA requires 7:1 for normal text and 4.5:1 for large text.

How does the one-click fix work?

It keeps the hue and saturation of the color you choose to change and moves only its lightness, the smallest amount needed to reach the next failing threshold.

What is the difference between WCAG AA and AAA?

AA is the level most laws and audits ask for: 4.5:1 for normal text and 3:1 for large text. AAA is stricter, 7:1 and 4.5:1, and is usually applied to body text in products that need the highest readability.

Does contrast apply to icons and buttons?

Yes. WCAG 1.4.11 asks for at least 3:1 between UI components (button borders, form fields, icons that carry meaning) and the colors next to them.

Is this contrast checker free?

Yes. It is free, needs no sign-up and runs entirely in your browser.

📖 How to fix low color contrast (WCAG 2.2)

More free tools