How to Use the Color Contrast Checker
- Enter your foreground color: Input the text or element color as a HEX code, RGB value, or use the color picker to select visually.
- Enter your background color: Input the background color using the same methods — HEX, RGB, or visual picker.
- Review the contrast ratio: The tool instantly calculates the WCAG contrast ratio between your two colors and displays pass/fail status for AA and AAA compliance levels.
- Check normal and large text: The results show separate pass/fail ratings for normal text (under 18pt or 14pt bold) and large text (18pt+ or 14pt+ bold), as WCAG thresholds differ by text size.
Understanding WCAG Color Contrast Standards
The Web Content Accessibility Guidelines (WCAG) define minimum contrast ratios to ensure that text is readable for people with visual impairments, including color blindness and low vision. The contrast ratio is calculated using the relative luminance of the two colors, producing a value between 1:1 (no contrast, identical colors) and 21:1 (maximum contrast, black on white). The formula weighs red, green, and blue channels differently because the human eye perceives green more brightly than red or blue.
WCAG 2.1 defines two conformance levels. Level AA requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (18pt or larger, or 14pt bold or larger). Level AAA, the highest standard, requires 7:1 for normal text and 4.5:1 for large text. These thresholds are based on extensive research into readability for users with various visual conditions, including the approximately 8% of men and 0.5% of women who have some form of color vision deficiency.
Meeting WCAG contrast requirements is not just about accessibility compliance — it improves readability for all users, especially on mobile devices in bright sunlight or on low-quality displays. Many organizations are legally required to meet WCAG standards under accessibility laws such as the Americans with Disabilities Act (ADA) in the US and the European Accessibility Act. Failing contrast checks is one of the most common WCAG violations found in web audits.