Utility Tools

WCAG Contrast Checker

Check the color contrast ratio between text and background colors against WCAG AA and AAA accessibility standards — instantly inside your browser.

Private by default Instant results No signup
WCAG Contrast CheckerLive
Sample text previewThe quick brown fox jumps over the lazy dog.
Contrast ratio17.40:1
AA — Normal text (4.5:1)
AA — Large text (3:1)
AAA — Normal text (7:1)
AAA — Large text (4.5:1)
Overview

What is a contrast ratio?

The Web Content Accessibility Guidelines (WCAG) define a contrast ratio between 1:1 (identical colors) and 21:1 (pure black on pure white) to describe how easy text is to read against its background. Low contrast makes text hard to read, especially for users with low vision — WCAG sets minimum ratios that pass at different conformance levels.

This tool computes the exact contrast ratio between any two hex colors and checks it against the WCAG AA and AAA thresholds for both normal and large text.

Guide

How to use it

1Pick or enter your text color
2Pick or enter your background color
3Preview the sample text at those colors
4Check which WCAG levels the pairing passes

How the ratio is calculated

Each color's relative luminance is calculated from its red, green, and blue channels using the WCAG formula, which weights each channel differently to match human perception of brightness. The contrast ratio is then the luminance of the lighter color plus 0.05, divided by the luminance of the darker color plus 0.05 — exactly as specified in the WCAG 2.x success criteria.

Why it helps

Features & benefits

Exact WCAG-standard contrast ratio calculation
Pass/fail checks for AA and AAA, normal and large text
Live sample text preview at your chosen colors
Color pickers or manual hex entry
100% private — nothing leaves the device

Why this runs entirely in your browser

The luminance and contrast math runs in JavaScript locally in the tab, which means it keeps working offline once the page has loaded and nothing entered here is ever sent to a server.

Common uses

Checking a website's text and background color pairing before shipping a design, verifying a button meets accessibility requirements, or auditing an existing site for WCAG compliance.

Frequently asked questions

A few things people usually want to know before trusting the numbers.

AA is the standard minimum level most sites aim for (4.5:1 for normal text, 3:1 for large text). AAA is a stricter, enhanced level (7:1 for normal text, 4.5:1 for large text) recommended for higher accessibility needs.

Text that's at least 18pt (24px), or 14pt (about 19px) bold, is considered large text and gets a lower required contrast ratio.

No. Contrast ratio is symmetric — swapping the text and background colors gives the same ratio either way.

21:1, which occurs only between pure black (#000000) and pure white (#ffffff).

No. All calculation happens locally in your browser. Nothing entered here is sent to a server, stored, or shared.