← All resources
The toolkit · Resource guide

WebAIM Contrast Checker

Check foreground and background color combinations against WCAG contrast requirements before using them in a design.

Visit website (opens in a new tab)
Understand the tool

Overview

WebAIM Contrast Checker compares foreground and background colors against WCAG contrast requirements. It is useful for checking a palette before applying it to text, controls or other interface elements.

Treat a passing color pair as one design check, alongside readable typography and clear interaction states.

Best for

  • Choosing readable text and background combinations.
  • Checking button labels and interface colors.
  • Reviewing light and dark palettes.

Key features

  • Foreground and background color inputs.
  • Contrast ratio and WCAG pass/fail results.
  • Checks for normal text, large text and interface components.
A practical walkthrough

Getting started

  1. Enter two colors. Add the foreground and background hex values or use the color pickers.

  2. Read the result. Choose the relevant text size or interface-component check.

  3. Adjust and recheck. Change a color until the intended combination meets the requirement.

Things to know

  • Normal and large text have different contrast thresholds.
  • Test hover, focus and disabled states separately.
  • Contrast alone does not establish overall accessibility.

Useful alongside this

Accessibility

Text

Visual

Orientation

Accessibility settings