cd .. (all tools)

Contrast checker

WCAG 2.2 contrast, with the nearest colour that passes.

// Runs in your browser. Nothing you type here is sent anywhere.

HEX, rgb(), hsl(), oklch() or a name.

HEX, rgb(), hsl(), oklch() or a name.

Preview

Large text, 24 px

The quick brown fox jumps over the lazy dog.

Button

Contrast

5.16 to 1

WCAG 2.2

  • AA, text (needs 4.5:1) passes
  • AA, large text (needs 3:1) passes
  • AAA, text (needs 7:1) fails
  • AAA, large text (needs 4.5:1) passes
  • AA, icons and edges of controls (needs 3:1) passes

Large text is at least 24 px, or 18.66 px in bold.

Aim for

Nearest colours that pass

Already passes.