Check WCAG Contrast for Accessible Text
Quand cela s’applique
Use this when you are picking foreground and background colors for UI or content. Enter two sRGB hex colors, compare the ratio to WCAG thresholds, and iterate before you ship.
Outil à utiliser
Rapport de contraste entre deux couleurs hex et seuils AA/AAA.
Ouvrir Contraste WCAG →Étapes
- 1Enter the text (foreground) color as #RRGGBB or #RGB.
- 2Enter the background color the same way.
- 3Read the contrast ratio and which WCAG rows pass or fail.
- 4Adjust colors until you meet your target (often AA for body text).
- 5Re-check after real content is placed (long paragraphs, small labels).
Exemples
- Gray #111827 on white #ffffff for long-form reading.
- Brand accent button: ensure both default and hover states still pass.
Ce qu’il faut éviter
- Checking only one breakpoint while responsive themes change colors.
- Ignoring non-text UI that still needs discernible boundaries.
- Trusting contrast on gradients without sampling worst-case points.
Outils associés
Sur le blog
Plus dans Outils image
- Compresser les images pour des pages web plus rapides
- Préparer les images aux tailles des réseaux sociaux
- Supprimer les métadonnées EXIF avant de partager des photos
- Convertir les images pour la compatibilité et la taille de fichier
- Ajouter des filigranes pour protéger les images publiées
- Flouter les informations sensibles avant de partager une image
Tous les guides par tâche ou la liste complète sur le hub Outils image.
FAQ
Does this replace an audit?
No. It is a fast sRGB check. Full audits cover motion, structure, and more.
Non-hex inputs?
This tool expects hex. Convert from HSL/RGB elsewhere first.