WCAG Color Contrast Checker
Verify color accessibility against WCAG 2.1 and 2.2 standards in real-time. Features Level AA/AAA compliance checks, live UI component preview, color blindness (CVD) simulation, and one-click auto-adjustment. 100% private in-browser.
17.85:1
Optimal readabilityExcellent contrast! Exceeds WCAG AAA requirements for all typography and UI elements.
Color Pair Inputs
Compliance Breakdown by Criteria
Normal Body Text
Standard paragraph text, list items, tables, and dense data labels.
Large Text & Titles
Main section titles (H1–H3), hero statements, and emphasized subtitles.
UI Components & Icons
Form input borders, radio/checkbox rings, status icons, and diagram bars.
Live UI Component Preview
Test real-world rendering across typography, buttons, inputs, and interactive surfaces.
Empowering Accessible Digital Experiences
Visual accessibility ensures that every reader can comfortably consume content without strain. When contrast ratios exceed WCAG AA (4.5:1), cognitive comprehension increases and fatigue drops sharply across mobile screens in bright sunlight and low-light nocturnal environments.
Color Blindness Simulator (CVD)
Simulated using Brettel / Machado linear matrix models across ~8% of the global population.
Trichromatic vision with standard perception across all three cone types.
Red-weakness or absence of L-cones; reds appear dark or brownish-gray.
Green-weakness or absence of M-cones; difficulty distinguishing reds and greens.
Blue-weakness or absence of S-cones; difficulty distinguishing blues and greens.
Total color blindness; vision perceived exclusively in shades of gray.
Accessible Color Pair Presets
Curated palettes certified for Level AA and AAA compliance across diverse themes.
How the WCAG Contrast Checker Works
Professional in-browser color luminance calculation following official W3C guidelines.
Select Foreground & Background Colors
Pick or type any Hex code for your text color and surface background. Use the eye-dropper, sliders, or preset library.
Instant WCAG 2.1 & 2.2 Ratio Evaluation
Calculates relative optical luminance in real-time, verifying compliance against Level AA (4.5:1) and AAA (7.0:1) thresholds.
Simulate Color Blindness & Preview Components
Inspect live rendering across body text, headings, buttons, and form inputs, along with Protanopia, Deuteranopia, and Tritanopia simulations.
One-Click Auto-Fix & Code Export
Automatically adjust lightness to pass AA or AAA with a single click, then export production-ready CSS snippets or markdown reports.
Understanding WCAG 2.1 & 2.2 Color Contrast Requirements
The Web Content Accessibility Guidelines (WCAG) define verifiable standards to ensure that text and visual information remain clearly legible to people with moderately low vision, color perception deficiencies, or those viewing digital screens in challenging lighting conditions (such as direct sunlight or low brightness).
Level AA Minimum Standards (Mandatory)
Normal Text (<18pt / 24px): Requires a minimum contrast ratio of 4.5:1.
Large Text (18pt+ / 14pt+ bold): Requires a minimum contrast ratio of 3.0:1.
Non-Text Elements (Criteria 1.4.11): UI controls, form borders, active states, and icons require a 3.0:1 minimum against adjacent surfaces.
Level AAA Enhanced Standards (Recommended)
Normal Text: Requires a minimum contrast ratio of 7.0:1.
Large Text: Requires a minimum contrast ratio of 4.5:1.
Designed for elderly readers, high-density scientific interfaces, legal documentation, and accessibility-first government portals.
The Mathematical Relative Luminance Formula
Contrast ratio is mathematically determined by the relative luminance of both colors, defined on a scale from 0.0 (pure black) to 1.0 (pure white). The sRGB gamma curve is linearized before applying the spectral sensitivity weights:
Ratio = (L1 + 0.05) / (L2 + 0.05), where L1 ≥ L2
The constant 0.05 offset accounts for ambient flare on modern display panels. Consequently, the minimum possible ratio is 1:1 (identical colors) and the absolute maximum is 21:1 (pure white on pure black).
Explore More Design & Web Utilities
Explore complementary utilities designed to speed up your workflow.
Color Format Converter
Convert color codes seamlessly between HEX, RGB, HSL, HSV, CMYK, and OKLCH with color harmonies.
Word & Character Counter
Analyze word density, sentence count, reading time, and reading level for accessible content.
QR Code Generator
Design accessible, high-contrast QR codes with custom styling and vector SVG export.