inyourbrowser.com

Contrast checker

Contrast checker is a browser-based accessibility tool for verifying that foreground and background color combinations meet WCAG 2.1 AA or AAA standards. Enter two colors and get the contrast ratio with instant pass/fail results.

Aa Large text sampleNormal body text sample, the quick brown fox jumps over the lazy dog.
Contrast ratio21.00 : 1
AA. Normal text (≥4.5:1)pass
AA. Large text (≥3:1)pass
AAA. Normal text (≥7:1)pass
AAA. Large text (≥4.5:1)pass

MODE

PRESETS

Runs entirely in your browser

Dedicated pages

Direct links for each accessibility standard.

How to check colour contrast

  1. Enter your foreground (text) colour and background colour as HEX or RGB values, or use the colour pickers.
  2. The contrast ratio is calculated instantly against WCAG 2.1 standards.
  3. Check whether your colour combination passes AA or AAA level for normal and large text.
  4. Adjust either colour until the ratio meets your target standard.

Common uses

Technical specification

Frequently asked questions

What is the minimum contrast ratio for WCAG AA?
WCAG 2.1 AA requires a contrast ratio of at least 4.5:1 for normal text and 3:1 for large text (18pt or 14pt bold). AAA requires 7:1 and 4.5:1 respectively.
What counts as large text?
Large text is 18pt (approximately 24px) or larger in regular weight, or 14pt (approximately 18.67px) or larger in bold.
Is my data sent to a server?
All contrast calculations run in your browser.
Why does my design tool show a different ratio?
This tool follows the WCAG 2.1 relative luminance formula exactly, which some design tools may implement slightly differently.

Reviewed and tested May 25, 2026.