⚡
usefultools.dev
Aa

Color Contrast Checker (WCAG AA / AAA)

NOVO

Color 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.

Funciona 100% no seu navegador — o que você insere nunca é enviado nem armazenado nos nossos servidores.

Esta ferramenta ainda não está totalmente traduzida, por isso parte do texto continua em inglês. A ferramenta funciona da mesma forma em todos os idiomas.

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
4.47:1WCAG 2.x contrast ratio
  • 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)

Text for AA (4.5:1)#7676764.54:1 · L -0.2%
Text for AAA (7:1)#5959597.00:1 · L -11.6%
Background for AA (4.5:1)#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.

⚡

Exemplos rápidos

Entradas típicas e os resultados que esta ferramenta gera.

Ratio
#000000 on #ffffff
21.00:1 · AAA
Ratio
#777777 on #ffffff
4.47:1 · fails AA normal
Ratio
#767676 on #ffffff
4.54:1 · passes AA
Suggestion
Fix #777777 for AA
#767676
APCA
#888888 on #ffffff
APCA Lc 63.1
📖

Visão geral

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.

Por que usar esta ferramenta?

  • 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
⭐

Recursos

📏

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.

🛠️

Como usar

1

Enter colours

Type or pick the text colour and background colour.

2

Read the ratio

See the contrast ratio and each AA / AAA result.

3

Fix failures

Press Use on a suggested colour, or Swap to compare the reverse.

4

Copy

Copy the passing hex value into your design tokens.

🤔

Perguntas frequentes