Ready to check
Pick colors and click Check Contrast// check contrast ratio against wcag 2.1 aa and aaa standards
Check color contrast ratio against WCAG 2.1 AA and AAA standards instantly. Free browser-based tool for designers and developers.
Ready to check
Pick colors and click Check ContrastUse the color picker or type a hex code for both foreground and background colors.
Choose Normal or Large text โ WCAG requirements differ based on text size.
Click Check Contrast to see your ratio and WCAG AA/AAA pass/fail results.
The WCAG Contrast Checker calculates the contrast ratio between two colors and checks whether it meets WCAG 2.1 accessibility guidelines at the AA and AAA conformance levels. A higher ratio means better readability for all users, including those with low vision.
WCAG (Web Content Accessibility Guidelines) is an international standard for web accessibility. Adequate color contrast ensures that text is readable by people with low vision or color blindness. Poor contrast is one of the most common accessibility failures on the web.
AA is the minimum acceptable conformance level required by most accessibility laws and standards (including ADA, Section 508, and EN 301 549). AAA is the enhanced level offering the best readability. For normal text, AA requires 4.5:1 and AAA requires 7:1 contrast ratio.
Large text is defined as text that is at least 18pt (24px) or bold text at least 14pt (approximately 18.67px). Large text has lower contrast requirements because it is inherently easier to read at smaller ratios.
This tool works with solid hex colors only. For semi-transparent colors, you should first calculate the resulting blended color against its background, then enter that combined value for an accurate contrast check.
WCAG 2.1 Success Criterion 1.4.11 requires a minimum 3:1 contrast ratio for UI components and graphical objects (like icons and form borders) against adjacent colors. This is separate from text contrast requirements.
For WCAG AA compliance, 4.5:1 is sufficient for normal text. However, aiming for higher ratios (7:1 or above) improves readability for a wider range of users, particularly those with moderate low vision who do not use assistive technology.
While WCAG is designed for digital interfaces, the underlying contrast principles apply to print as well. High contrast in print materials benefits readers with visual impairments, making this checker useful for accessible document and brochure design too.
If your colors fail, try darkening the foreground color or lightening the background (or vice versa) until the ratio meets the required threshold. You can also try using the Tint & Shade Generator to find compliant variations of your brand colors.
A WCAG Contrast Checker is a tool that measures the visual contrast between two colors โ typically a text color and its background โ and evaluates whether the ratio meets the Web Content Accessibility Guidelines (WCAG) defined by the World Wide Web Consortium (W3C). This type of tool is essential for web designers, developers, and content creators who want to ensure their work is accessible to everyone, including people with low vision or color blindness.
Color contrast is one of the most impactful โ and most frequently overlooked โ aspects of web accessibility. Even beautifully designed websites can be nearly unusable for a significant portion of users if text doesn't stand out clearly from its background. The WCAG Contrast Checker removes the guesswork by giving you a precise numerical ratio and a clear pass/fail result for the relevant accessibility level.
WCAG 2.1 defines contrast requirements under Success Criteria 1.4.3 (Contrast โ Minimum) and 1.4.6 (Contrast โ Enhanced). These criteria are organized into two levels of conformance:
"Normal text" refers to body copy, labels, and other standard-size text. "Large text" is defined as text that is at least 18 points (24px) in regular weight, or at least 14 points (approximately 18.67px) in bold. These different thresholds exist because larger or bolder text is inherently easier to read, so it can pass with a lower contrast ratio.
The contrast ratio is derived from the relative luminance of each color. Relative luminance is a measure of the perceived brightness of a color, taking into account the non-linear way human vision processes light. The formula is defined by the W3C as follows:
The result is expressed as a ratio relative to 1 (e.g., 4.5:1 or 7:1). The maximum possible ratio is 21:1, which is pure black on white or pure white on black. A ratio of 1:1 means both colors are identical with no contrast at all.
Approximately 8% of men and 0.5% of women worldwide have some form of color vision deficiency. Additionally, around 246 million people globally have moderate to severe visual impairment. Poor contrast doesn't just affect these groups โ it affects anyone reading on a glare-affected screen, in bright sunlight, on a low-quality display, or while fatigued. Good contrast is not a niche concern; it improves the reading experience for everyone.
From a legal standpoint, many countries and jurisdictions have adopted WCAG as the technical standard for web accessibility compliance. In the United States, Section 508 of the Rehabilitation Act and the Americans with Disabilities Act (ADA) both reference WCAG. The European Union's EN 301 549 standard and the UK's accessibility regulations similarly align with WCAG 2.1. Non-compliance can expose organizations to legal risk, as accessibility lawsuits have increased significantly in recent years.
This tool is useful for a wide range of professionals and creators:
If your color pair fails the WCAG contrast check, here are some practical strategies to improve the ratio without abandoning your design language:
While text contrast is the most commonly discussed requirement, WCAG 2.1 also addresses non-text contrast under Success Criterion 1.4.11. This criterion requires a minimum 3:1 contrast ratio for user interface components (like buttons, form inputs, and checkboxes) and meaningful graphical elements (like charts, icons, and infographics) against their adjacent colors. This ensures that interactive elements are identifiable and graphical information is perceivable without relying solely on color.
Our WCAG Contrast Checker focuses on the color ratio calculation, which is the foundation for both text and non-text contrast checks. You can use it to evaluate any two adjacent colors, whether they're for text, icons, or UI components.