What are the WCAG standards?
The WCAG (Web Content Accessibility Guidelines) are a set of international guidelines designed to make web content accessible to everyone, including people with visual disabilities (color blindness, low vision, age-related vision decline). In France, these standards are implemented in the RGAA (Référentiel Général d’Amélioration de l’Accessibilité, the French general accessibility improvement framework), which is mandatory for public sites and large companies.
How is the contrast ratio calculated?
The contrast ratio measures the difference in relative luminance between two colors (the text and its background). The scale runs from 1:1 (no difference, for example white text on a white background) to 21:1 (maximum contrast, black text on a white background).
What do the AA and AAA levels mean?
- AA level: This is the standard targeted by 99% of websites. To pass "AA", normal-size text must have a ratio of at least 4.5:1. For large text (over 18pt, or 14pt bold), a ratio of 3.0:1 is enough.
- AAA level: This is the strictest accessibility level (often required for certain government sites). It requires a ratio of 7.0:1 for normal text, and 4.5:1 for large text.