Free browser-based WCAG contrast checker. Instantly test foreground and background color combinations for AA and AAA compliance. No sign-up required.
What Is WCAG Color Contrast?
WCAG (Web Content Accessibility Guidelines) defines minimum contrast ratios to ensure that text is readable by people with low vision or color vision deficiency. The contrast ratio is a measure of how different two colors appear in terms of relative brightness — not simply how different they look to someone with typical color vision.
A contrast ratio of 1:1 means the two colors are identical. A ratio of 21:1 is the maximum, representing pure black on pure white. All ratios in between are calculated using a formula based on the relative luminance of each color as defined in the sRGB color space.
WCAG 2.1 Contrast Requirements
There are four criteria you need to be aware of, depending on your target compliance level:
- AA — Normal text (≥ 4.5:1): The baseline requirement for body text, labels, and most interface text at standard sizes.
- AA — Large text (≥ 3:1): Applies to text 18px or larger (regular weight), or 14px+ bold. Easier to read at lower contrast because of its size.
- AAA — Normal text (≥ 7:1): The enhanced level. Required for the highest accessibility certification. Not always achievable with brand colors.
- AAA — Large text (≥ 4.5:1): The same threshold as AA normal text, applied to large type.
Why Contrast Matters Beyond Accessibility
Color contrast affects everyone, not just users with disabilities. Poor contrast makes text harder to read in bright sunlight, on low-quality screens, or for users who have adjusted their display settings. High-contrast text also improves reading speed and reduces eye strain during extended use — benefits that apply to all users.
From a business perspective, many jurisdictions require WCAG compliance under accessibility laws — including the ADA in the United States, the EN 301 549 standard in the EU, and the Accessibility for Ontarians with Disabilities Act (AODA) in Canada. Failing to meet these standards can expose organizations to legal liability.
Tips for Passing Contrast Checks
If your color combination fails, here are practical approaches to fix it: darken the text color or lighten the background for light-mode designs; add a semi-transparent background behind text placed on images; use the HSL lightness channel — reduce it for text colors and increase it for backgrounds until the ratio passes. Avoid relying on color alone to convey meaning; always pair color with shape, pattern, or text labels for accessibility.