Color Contrast Checker
Calculate the contrast ratio between two colors and check WCAG 2.1 AA and AAA accessibility compliance.
Text Color
Background Color
Large Text Sample Aa
Normal text — The quick brown fox jumps over the lazy dog.
WCAG 2.1 Compliance
AA (4.5:1) — WCAG 2.1 minimum for normal text. Required for most public-facing web content.
AA Large / UI (3:1) — Minimum for text ≥ 18pt (or 14pt bold) and graphical UI components.
AAA (7:1) — Enhanced contrast for normal text. Recommended for high-readability contexts.
AAA Large (4.5:1) — Enhanced contrast for large text.
Color Values
#000000rgb(0, 0, 0)hsl(0, 0%, 0%)#FFFFFFrgb(255, 255, 255)hsl(0, 0%, 100%)Preset Combinations
Click any preset to load it into the color pickers.
About WCAG Contrast Requirements
The Web Content Accessibility Guidelines (WCAG) 2.1 define minimum contrast ratios to ensure content is readable by people with low vision or color deficiencies.
Level AA is the standard target for most websites and required by laws in many jurisdictions (e.g., ADA, EN 301 549). Level AAA is the enhanced target, recommended for high-readability content such as medical or legal documents.
Contrast ratio is calculated using the relative luminance formula defined in the WCAG specification. A ratio of 1:1 means identical colors; 21:1 is the maximum (black on white).
All calculations happen in your browser. No color data is sent to any server.