Skip to content

Design

Color Contrast Checker

Check foreground and background contrast against WCAG AA and AAA thresholds with a live preview.

Loading tool…

About this tool

What is Color Contrast Checker?

Check a text color against the background actually placed behind it. The ratio describes luminance contrast between two solid colors; it does not measure font quality, spacing or the accessibility of an entire page. Test both light and dark themes, and repeat the check for hover, disabled and focus states rather than assuming the default pair covers every interaction.

A worked example

Establish a maximum-contrast baseline

Example input

#000000
#ffffff

Expected result

21:1

Use black foreground and white background. The ratio is 21 to 1 and clears the AA normal-text threshold of 4.5 to 1. Large text has a different threshold. If a design uses translucent text, an image or a gradient, first determine the effective colors at the weakest point; two isolated HEX values cannot describe that changing background.

Common mistakes and limits

  • A passing ratio does not certify an entire interface. Keyboard operation, focus visibility, form labels and non-color cues need separate review.
  • Do not round a ratio up to claim a pass. A result below the required threshold remains below it, even when a short display looks close.

Features

What you can do

  • Relative luminance and contrast ratio
  • AA and AAA checks for normal and large text
  • Live foreground and background preview
  • Three-digit and six-digit HEX colors

Frequently asked questions

Questions about Color Contrast Checker

What counts as large text for the contrast checks?

Large text is at least 18 pt (24 CSS px), or 14 pt (about 18.67 CSS px) in bold. Passing uses the full unrounded ratio.

Related tools