Contrast Checker

Check colour contrast against WCAG AA and AAA.

Free Processed in your browserNo sign-up
Getting your tool ready…

About Contrast Checker

Low-contrast text is one of the most common accessibility problems on the web. Contrast Checker calculates the exact WCAG 2.x contrast ratio between two colours and tells you whether they pass for normal text, large text and interface components.

If a pair falls short, it suggests the closest adjusted colours that pass, so you can keep your palette and still be readable.

Runs entirely in your browser. Your files and text never leave your device.

Frequently asked questions

What ratio do I need?

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

What counts as large text?

At least 18 pt (24 px) regular, or 14 pt (about 18.66 px) bold.

How are suggestions chosen?

HandyBear adjusts the lightness of one colour while keeping its hue and saturation, and finds the closest version that passes.

How to use it

  1. Pick a text colour and a background colour, or type HEX or RGB values.
  2. Read the contrast ratio and the AA and AAA results.
  3. Check the live preview at normal and large sizes.
  4. Apply a suggested fix if needed and copy the final colour codes.

Guides for Contrast Checker

Step-by-step articles from the HandyBear blog.

All articles

More from Developer and friends.

All Developer tools

Gradient Lab

Design CSS gradients and export them as images.

DesignFree