What is WCAG contrast ratio?
- WCAG defines minimum contrast ratios to ensure text is readable by people with visual impairments.
- AA is the standard legal requirement in most countries. AAA is the enhanced level.
- Poor contrast is one of the most common accessibility failures on the web.
WCAG contrast requirements
For normal text (under 18pt): AA requires 4.5:1, AAA requires 7:1.
For large text (18pt+ or 14pt+ bold): AA requires 3:1, AAA requires 4.5:1.
For UI components (buttons, inputs, icons): AA requires 3:1.