Contrast Checker
Check a foreground and background color against WCAG AA and AAA.
The quick brown fox jumps over the lazy dog
Contrast ratio
AA normal text (4.5:1)
AA large text (3:1)
AAA normal text (7:1)
AAA large text (4.5:1)
Large text means 24px and up, or 18.5px bold. The ratio uses the WCAG relative-luminance formula.
Contrast is (L1 + 0.05) / (L2 + 0.05), where L is the relative luminance of the lighter and darker color. A ratio of 21:1 is black on white. 1:1 means the colors are the same.
Frequently asked questions
Does this check color blindness?
No. It checks the WCAG 2 contrast ratio only. Different hues can pass the ratio and still be hard for some people to tell apart.
Can I paste rgb()?
Use a 3-digit or 6-digit hex color, or the picker. The ratio needs opaque red, green and blue channels.