Color Contrast Checker (WCAG AA / AAA)
NOUVEAUColor contrast checker for WCAG 2.x: get the contrast ratio of text and background, AA/AAA pass or fail, a live preview and the nearest passing colour.
Fonctionne à 100 % dans votre navigateur — vos données ne sont jamais envoyées ni stockées sur nos serveurs.
Cet outil n'est pas encore entièrement traduit : une partie du texte est encore en anglais. L'outil lui-même fonctionne de la même façon dans toutes les langues.
Accepts #hex (3, 4, 6 or 8 digits), rgb()/rgba(), hsl()/hsla() and basic names like white.
Large text 24px bold
Normal body text at 16px. The quick brown fox jumps over the lazy dog.
Small text 14px — hardest to read when contrast is low.
Button outline- AA normal text (≥ 4.5)✗ Fail
- AA large text (≥ 3)✓ Pass
- AAA normal text (≥ 7)✗ Fail
- AAA large text (≥ 4.5)✗ Fail
- UI components & graphics (≥ 3)✓ Pass
Large text = at least 24px regular or 18.66px (14pt) bold.
Nearest passing colours (lightness adjusted, hue kept)
#7676764.54:1 · L -0.2%#5959597.00:1 · L -11.6%#0606064.52:1 · L -97.5%APCA Lc 71.1 (informational only)
APCA (APCA-W3 0.0.98G) is a candidate contrast method for the future WCAG 3; it is not part of WCAG 2.x conformance. As a rough guide, |Lc| 75+ suits body text and 60+ larger text. Negative values mean light text on a dark background.
Exemples rapides
Des entrées typiques et les résultats produits par cet outil.
Présentation
This color contrast checker measures how readable text is on its background using the WCAG 2.x formula. Enter a text colour and a background colour as hex, rgb() or hsl(), or pick them, and you get the contrast ratio with pass or fail for AA and AAA at normal and large text sizes and for non-text UI components.
Designers and front-end developers use it to meet accessibility requirements before shipping. When a pair fails, the tool suggests the nearest passing colour by adjusting only lightness, so the brand hue stays the same. Translucent colours are blended before measuring, and an APCA Lc value is shown for information only.
All calculations run in your browser; no colours are sent anywhere.
Pourquoi utiliser cet outil ?
- Exact WCAG 2.x ratio with AA and AAA results
- Nearest passing colour, same hue
- Live preview of text, headings and outlines
- Hex, rgb() and hsl() input with pickers
- APCA Lc shown for comparison
Fonctionnalités
WCAG 2.x ratio
Relative luminance per the WCAG definition, shown truncated so borderline pairs are not overstated.
Five checks
AA and AAA for normal and large text, plus the 3:1 UI component threshold.
Fix suggestions
Closest text or background colour that passes AA or AAA, with one-click Use.
Live preview
Large, normal and small text and a button outline in your colours.
Alpha aware
Translucent colours are composited before the ratio is calculated.
APCA Lc
APCA lightness contrast as an informational second opinion.
Mode d'emploi
Enter colours
Type or pick the text colour and background colour.
Read the ratio
See the contrast ratio and each AA / AAA result.
Fix failures
Press Use on a suggested colour, or Swap to compare the reverse.
Copy
Copy the passing hex value into your design tokens.