design utility

Contrast Checker

Calculate WCAG contrast ratio for two colours locally and show AA/AAA results.

Check contrast

Calculate WCAG contrast ratio for two colours locally and show AA/AAA results.

How it works

Enter foreground and background colours to calculate the WCAG 2.2 contrast ratio and normal-text AA/AAA outcomes. The result is an engineering aid, not a full accessibility audit.

Limits

Questions

Which WCAG thresholds are shown?

The page reports the contrast ratio and normal-text AA/AAA results. Large-text thresholds and non-text contrast are different checks and are not claimed by this tool.

What if my colours fail?

Adjust the foreground or background until the ratio clears the threshold you need, then verify the pairing in the real component and with real content.

What is a color contrast checker?

It compares foreground and background colors and reports their contrast ratio, so you can check text against WCAG AA or AAA thresholds before shipping.

Privacy

Approved improvement measurement records coarse event counts only: page ready, task started, completed, export requested and a generic failure class. It never records filenames, file contents, text, output, full URLs or a visitor ID. You can turn measurement off for this hostname below.