Design tool
Color Contrast Checker
Compare a text color with a background color and see if the contrast passes WCAG AA and AAA.
Result updates here as you change the fields.
The quick brown fox jumps over the lazy dog.
How to check color contrast (WCAG)
- Set the text color and the background with the pickers, or type a hex or rgb() value.
- Choose body text or large text. Swap the two colors if you want to try the pair the other way.
- Read the sample sentence and the ratio. The line under the ratio says whether that size passes WCAG AA and AAA.
This color contrast checker compares a text color with its background and reports the ratio against WCAG. Body text needs 4.5:1 for AA and 7:1 for AAA. Large text, 18pt or 14pt and bold, needs 3:1 for AA and 4.5:1 for AAA. The sample sentence shows the pair as a reader will see it.
Frequently asked questions
What is a WCAG color contrast checker?
It measures the contrast ratio between foreground and background colors and compares it with WCAG AA and AAA thresholds so you can tell whether text stays readable.
What ratio do I need for AA and AAA?
Normal body text needs 4.5:1 for AA and 7:1 for AAA. Large text needs 3:1 for AA and 4.5:1 for AAA.
What does Pass mean?
The contrast ratio meets the number written beside that row. Fail means it is below that number.
Does this check colour contrast for images?
No. Paste solid colors as hex or rgb(). Text on a photograph needs a separate check against the actual background behind the letters.
Are the colors uploaded?
No. The contrast check runs in your browser.
Related design tools
Keep working without leaving the site.
Color converter
Switch a color between HEX, RGB, and HSL.
Open toolPX and REM
Convert pixels to rem, or rem back to pixels.
Open toolCSS gradient
Build a linear or radial gradient and copy the CSS.
Open toolBorder radius
Preview a border-radius and copy the CSS property.
Open toolTints and shades
Build lighter and darker steps from one hex color.
Open toolAspect ratio
Simplify a width and height, or find the missing side.
Open tool