Normal text
AA needs 4.5:1. AAA needs 7:1. Most paragraphs, labels, links, and button text count as normal text.
Free accessibility tool
Check whether text, icons, and controls are easy to see. Enter two colors to get a live WCAG AA and AAA contrast result.
No colors leave your browser.
Use the color pickers or type a 3- or 6-digit HEX value. Results update as soon as both colors are valid.
Excellent contrast. This pair passes every result below.
See the pair in context
#17211B on #FAF5EB
Sample interface
This is large text at 24 pixels.
This normal-size paragraph shows how body text looks with your foreground and background colors. Check the measured results above before using the pair.
This underlined link uses the foreground color
Easy alternatives
These suggestions keep one of your colors when possible. Select a suggestion to apply it and check every result again.
How to read the result
The checker uses the WCAG 2.x sRGB relative luminance formula. Thresholds are tested against the full calculation and are never rounded up to create a pass.
AA needs 4.5:1. AAA needs 7:1. Most paragraphs, labels, links, and button text count as normal text.
AA needs 3:1. AAA needs 4.5:1. Large text means at least 24 CSS pixels, or about 18.7 pixels when bold.
Important interface graphics and control boundaries generally need 3:1 against adjacent colors. Decorative details are different.
For normal text, start with at least 4.5:1. A ratio of 7:1 or higher meets the stronger AAA target for normal text.
No. Contrast is one part of accessibility. Text size, focus visibility, labels, keyboard access, structure, zoom, and other requirements still matter.
No. The calculation, preview, and suggestions run in this browser. Your colors are not uploaded or saved by this tool.