usefmtly

Color Contrast Checker

Contrast Checker — Free WCAG color contrast checker. Enter any foreground and background color to instantly see the contrast ratio and whether it passes WCAG AA and AAA for normal text, large text, and UI components. No signup required.

Presets

Preview

Large Text (24px+)

Normal text at 16px — can you read this clearly?

Small text at 14px — even harder to read at low contrast.

17.06:1

Contrast ratio

WCAG 2.1

Normal text — AA (4.5:1)✓ Pass
Normal text — AAA (7:1)✓ Pass
Large text — AA (3:1)✓ Pass
Large text — AAA (4.5:1)✓ Pass
UI components — AA (3:1)✓ Pass

Why contrast ratio matters

About 300 million people worldwide have some form of color vision deficiency, and many more experience reduced contrast sensitivity due to age, bright sunlight, or low-quality displays. When text and background colors are too similar, content becomes unreadable for a significant portion of your audience.

The Web Content Accessibility Guidelines (WCAG) define minimum contrast ratios to ensure text remains readable across all visual abilities. Meeting these standards is also a legal requirement in many jurisdictions under accessibility law.

WCAG thresholds explained

  • 3:1 — minimum for large text (18px+) and UI components (buttons, icons, input borders) at Level AA
  • 4.5:1 — minimum for normal text at Level AA; also the AAA requirement for large text
  • 7:1 — enhanced contrast for normal text at Level AAA — best for maximum accessibility
  • 21:1 — maximum possible ratio (black on white)

Tips for improving contrast

  • Darken text, not backgrounds — dark text on light backgrounds is usually easier to adjust than the reverse
  • Avoid pure gray on white — light gray text (#aaa) on white is one of the most common failures
  • Test placeholder text too — form placeholders often fail contrast requirements
  • Don't rely on color alone — use icons, underlines, or weight to differentiate elements beyond color
  • Check at multiple sizes — a color pair that passes for large headings may fail for body text

Frequently Asked Questions

What is WCAG contrast ratio?

WCAG (Web Content Accessibility Guidelines) defines minimum contrast ratios between text and its background to ensure readability for people with low vision or color blindness. The ratio compares the relative luminance of the two colors on a scale from 1:1 (identical) to 21:1 (black on white).

What are the WCAG AA and AAA thresholds?

WCAG 2.1 Level AA requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (18pt+). Level AAA requires 7:1 for normal text and 4.5:1 for large text. UI components and graphics (buttons, icons, input borders) require 3:1 for AA.

What counts as large text?

Large text is defined as 18pt (24px) or larger for regular weight, or 14pt (approximately 18.67px) or larger for bold text. Large text has a lower contrast requirement because it is easier to read.

What color formats are supported?

The checker accepts 3-digit hex (#fff), 6-digit hex (#ffffff), and RGB values (rgb(255, 255, 255)). The # prefix is optional for hex values.

Why does accessibility require minimum contrast?

Approximately 300 million people worldwide have color vision deficiency, and many more have reduced contrast sensitivity due to age or low-vision conditions. Sufficient contrast ensures text remains readable across a wide range of visual abilities and display conditions.

Related Tools