Cc
Runs in your browserNothing is uploadedDesign & Color

Contrast Checker

Check the contrast ratio between a text colour and its background against the WCAG AA and AAA levels.

Loading tool…
Short answer

Contrast Checker measures the contrast ratio between a text colour and its background with the WCAG 2 formula, and shows pass or fail for AA and AAA, for normal and large text, and for interface parts. It runs in your browser.

What is a WCAG contrast ratio?

Contrast ratio

A number from 1:1 (no difference) to 21:1 (black on white), worked out from the relative luminance of the two colours. The Web Content Accessibility Guidelines set minimums so text stays readable for people with low vision.

AA and AAA

AA asks for 4.5:1 for normal text and 3:1 for large text and interface parts such as icons and input borders. AAA asks for 7:1 and 4.5:1. Large means at least 24px regular or 18.66px bold.

Why use Contrast Checker?

  • Honest rounding. The ratio is cut to two decimals rather than rounded up, so 4.499 shows as 4.49 and fails, just as an audit would.
  • Every level at once. See all five checks together instead of looking up each threshold.
  • Any colour format. Type a hex code, rgb(), hsl() or a CSS name into either box.

How to use Contrast Checker, step by step

Contrast Checker in PrintxPDF with a file loaded, options on the right and the run button below
Contrast Checker with a file loaded: the steps below follow this screen.
  1. Enter the text colour in Contrast Checker. Use the picker or type any CSS colour.
  2. Enter the background colour. The ratio and the pass or fail results update at once.
  3. Adjust until it passes. Darken the text or lighten the background until the levels you need pass.

Frequently asked questions

Does it handle transparent colours?

No. Colours are compared as solid, so blend a transparent colour onto its real background first and check the result.

Is this the same formula auditors use?

Yes. It uses the WCAG 2.x relative luminance formula and the thresholds from success criteria 1.4.3, 1.4.6 and 1.4.11.

What about the newer APCA method?

This tool uses WCAG 2.x, which is the version written into law and procurement rules today. APCA is a proposal for a future version and gives different numbers.

Looking for the long version? The guides cover each of these jobs in depth.