Contrast Checker (WCAG + APCA)

Compares a text colour with a background colour and gives the WCAG 2 contrast ratio, pass or fail results for AA and AAA, an APCA Lc value and a live sample.

Use the tool

Why this tool exists

Low-contrast text is among the most common accessibility failures, and it is easy to miss when you are looking at your own design on a good monitor. Grey on white that looks refined to you may be unreadable outdoors, or to someone with low vision.

Enter a foreground and a background colour in any CSS format. The tool shows the ratio, then marks pass or fail for AA normal text, AA large text, AA user-interface parts, AAA normal text and AAA large text. It also calculates APCA Lc, the newer perceptual measure being considered for future guidelines, with the usual thresholds listed. A preview shows heading and body text in your colours. Calculation is local to your browser.

How to use it

  1. Enter the foreground (text) colour in the first box.
  2. Enter the background colour in the second box.
  3. Read the contrast ratio and the AA and AAA results.
  4. Check the APCA Lc value and the live preview, then adjust your colours.

Frequently asked questions

What ratios do I need?

WCAG AA asks for 4.5 to 1 for normal text and 3 to 1 for large text and interface components. AAA asks for 7 to 1 for normal text and 4.5 to 1 for large text. The tool marks each with PASS or FAIL.

What is APCA?

APCA is a perceptual contrast method that depends on polarity and text size. Its Lc score is read against guideline values: 75 for body text, 60 for content, 45 for large text and 30 for spot text. It is not yet part of the WCAG 2 standard.

Which should I follow for compliance?

Legal and policy requirements today refer to WCAG 2 ratios, so those are the pass or fail results to use. Treat APCA as an extra check on readability, not a replacement.

Does transparency matter?

The inputs are used as given. If your text colour has alpha, the tool does not blend it with the background, so enter the final solid colour as it appears on screen.