Vérificateur de contraste
GratuitNouveauVérifiez n'importe quelle paire avec WCAG AA et AAA.
The contrast checker computes the WCAG 2.1 contrast ratio between a text colour and its background, then tests it against the AA and AAA thresholds for normal and large text. Everything is calculated locally, so no palette ever leaves your browser.
Comment utiliser Vérificateur de contraste
- 1Enter a foreground and a background colour with the pickers, or paste a hex code.
- 2Read the contrast ratio and the four WCAG AA and AAA pass or fail results.
- 3Compare the large and normal text previews to judge the pair in context.
- 4If a pair fails, apply the suggested darkening or lightening, or swap the two colours.
FAQ Vérificateur de contraste
What contrast ratio do I need?
WCAG AA asks for 4.5:1 for normal text and 3:1 for large text; AAA asks for 7:1 and 4.5:1. Interactive UI components and meaningful graphics need at least 3:1 against their surroundings.
How is the contrast ratio calculated?
Each colour is converted to relative luminance with the WCAG formula, then the ratio is (lighter + 0.05) / (darker + 0.05). It runs from 1:1 for identical colours up to 21:1 for black on white and ignores hue entirely.
What counts as large text?
At least 18.66px (14pt) when bold, or 24px (18pt) at regular weight. Anything smaller is normal text and has to meet the stricter 4.5:1 threshold under AA.
Does a passing ratio guarantee accessible text?
No, it only covers colour contrast. Readability also depends on font size and weight, letter spacing, background images, glare and colour-vision deficiencies, so test real screens too.
Vous utilisez Vérificateur de contraste souvent ?
Pro supprime toute la publicité, augmente les limites de fichiers et ajoute le mode par lots ainsi que des préréglages enregistrés dans tous les outils.
Comparer les offres →