Color contrast checker
Keep your background — adjust text
Keep your text — adjust background
FOREGROUND
BACKGROUND
Understanding Your Results
If your colors fail, try darkening the darker color, lightening the lighter color, or adjusting the hue — some hues are naturally higher or lower in luminance than others. Another option is to use the calculated suggestions displayed below the result. The tool can also provide AI-powered palette-aware color suggestions. Every suggested pair is independently checked against the WCAG contrast formula before it is displayed.
Exemption Rules
Logos & Brand Names: Text that is part of a logo or brand name is exempt from the text-contrast requirements in Success Criteria 1.4.3 and 1.4.6. This exemption does not extend to ordinary headings, navigation, buttons, or body text simply because they use brand colors.
Purely Decorative Elements: Text or graphics that are purely decorative and convey no information are exempt from the applicable contrast requirement. However, any background behind meaningful text must still provide sufficient contrast with that text.
Inactive Components: Controls that are not currently available for interaction, such as properly disabled buttons, are exempt while they remain inactive.
Beyond Contrast
The History of This Tool
Colors on the Web has provided color tools and accessibility resources since 1998. We launched the first version of this contrast checker in 2007, when WCAG 2.0 and its contrast-ratio formula were still being developed as a W3C Working Draft.