Color
Contrast
Instantly verify color contrast against WCAG AA and AAA standards — for text, buttons, and UI components.
① Enter foreground color ② Enter background color ③ Check WCAG contrast ratio
4.5:1 normal · 3:1 large
7:1 normal · 4.5:1 large
3:1 UI components (1.4.11)
What is WCAG color contrast and why does it matter?
WCAG (Web Content Accessibility Guidelines) defines minimum contrast ratios between foreground text and background colors to ensure readability for users with visual impairments, including color blindness and low vision. WCAG 2.1 Level AA requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (18pt or 14pt bold). Level AAA requires 7:1 for normal text and 4.5:1 for large text. The ratio is calculated using relative luminance — a perceptual measure derived from RGB linearization (0.2126R + 0.7152G + 0.0722B). Checking contrast early in the design process helps avoid costly retrofitting and ensures your product is legally accessible in many jurisdictions (ADA, EN 301 549, AODA).