All toolsDisplay
Color contrast checker
Calculate the contrast ratio of text against its background.
Test panel
Questions about Color contrast checker
What contrast ratio passes WCAG AA for regular text?
A ratio of at least 4.5:1 passes the regular-text check. The page also shows a separate check for large text at 3:1.
Will swapping the text and background colors change the contrast ratio?
The ratio stays the same when you exchange the two colors. The preview changes because the text and background trade places.
Can I check text placed over a photo or a translucent layer?
Use the actual visible colors behind and in the text for the pair you test. Sample several areas if the photo or gradient changes behind the text.