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

  1. 1Enter the text (foreground) color as #RRGGBB or #RGB.
  2. 2Enter the background color the same way.
  3. 3Read the contrast ratio and which WCAG rows pass or fail.
  4. 4Adjust colors until you meet your target (often AA for body text).
  5. 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

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.

Tous les guides par tâche · Outils Outils image · Blog