Lingua: Italiano

Verifica del contrasto dei colori

Funziona in questo browser. Niente di ciò che inserisci viene inviato ad Alinxs.

Quel vituperabile xenofobo zelante assaggia il whisky ed esclama: alleluja!

Quel vituperabile xenofobo zelante assaggia il whisky ed esclama: alleluja!

Rapporto di contrasto —

AAAAA
Testo normale 4.5 / 7——
Testo grande (24px, o 18,66px in grassetto) 3 / 4.5——
Componenti dell’interfaccia e grafica 3——

Practical guide

Color Contrast Checker — WCAG AA and AAA

Designers and developers use contrast checks to confirm that text stays readable for people with low vision and on poor screens. Pick colors with the color pickers or type hex codes; the preview, ratio and pass/fail table update immediately.

How to use it

  1. Choose a text color and a background color, or type hex values such as #1f2937 and #ffffff.
  2. Read the contrast ratio and check the AA and AAA columns for normal text, large text and interface components.
  3. Use Swap to test the reversed pair and Copy result to paste the findings into a review.

Worked example

Input
#777777 text on #ffffff
Result
Ratio 4.47:1 — normal text fails AA (needs 4.5), large text passes AA (needs 3) and fails AAA (needs 4.5).

How the result is produced

Each sRGB channel is linearized and combined into relative luminance (0.2126 R + 0.7152 G + 0.0722 B); the ratio is (lighter + 0.05) / (darker + 0.05), as defined in WCAG 2.

The ratio is truncated to two decimals rather than rounded, so a value just below a threshold is never shown as passing.

Important limits

  • Only solid colors are checked; transparency, gradients, images and text shadows need a manual check of the final rendered colors.
  • WCAG treats 24px regular or 18.66px bold text as large; font weight and rendering still affect real readability.
  • Contrast is one part of accessibility. It does not check focus visibility, color-only meaning or text size.

Questions and answers

What do AA and AAA mean?

They are WCAG conformance levels. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1 and 4.5:1.

Why does 4.49 not pass?

WCAG thresholds are minimums. The tool truncates rather than rounds so it never reports a pass the colors do not meet.

Does it support 3-digit hex?

Yes. #abc is expanded to #aabbcc.