Skip to tool
Legibly

All tools

Contrast checker

Check colour pairs, transparency and AA/AAA thresholds.

Sample text in the composited colours

12.635:1

Thresholds use the unrounded value.

  • ✓ AA · normal text ·4.5:1
  • ✓ AA · large text ·3:1
  • ✓ AAA · normal text ·7:1
  • ✓ AAA · large text ·4.5:1
  • ✓ Applicable non-text contrast ·3:1

The selected text is classified as normal size. AA text threshold: 4.5:1.

Method

A translucent background is composited over the opaque canvas, then the foreground over that result. Contrast uses sRGB relative luminance. Supported:3/4/6/8-digit HEX, RGB/RGBA, HSL/HSLA (degrees), transparent. Variables, named colours and other colour spaces are not supported.

Large text is at least 24 CSS px, or 18.667 CSS px at bold weight (700+). Non-text requirements concern applicable UI components and graphics with exceptions. Logos, inactive content and other specified cases have exceptions. A colour pair does not certify a page.

W3C: Contrast (Minimum)W3C: Non-text contrast

Explanations and examples