SupportENFR

Contrast

Colors & CSS

Compare a foreground and a background with the WCAG 2 contrast ratio. The check stays in your browser.

Try

The quick brown fox jumps over the lazy dog.

13.9817:1

Contrast ratio

AA normal text: PassAA large text: PassAAA normal text: PassAAA large text: Pass

Large text means 18pt or larger, or 14pt bold.

Did you know? Black on white is 21:1. That is the maximum the formula can report, because the 0.05 terms keep the ratio finite when one luminance is zero.

Learn more about contrast

What is this tool?