Accessibility Color Contrast Checker
Check WCAG 2.1 contrast ratio between foreground and background colors. Instant pass/fail for AA and AAA standards, live text preview, and accessible color suggestions.
Color Presets
Color Pair
Contrast Analysis
Live Text Preview
Accessible Foreground Alternatives
5 closest colors to your foreground that pass WCAG AA normal text (4.5:1)
Frequently Asked Questions
What is WCAG and why does contrast matter?▼
WCAG (Web Content Accessibility Guidelines) is the international standard for web accessibility, published by the W3C. Color contrast requirements ensure that people with low vision or color blindness can read text on your website. WCAG 2.1 Level AA (the most commonly required standard) mandates at least 4.5:1 contrast for normal text and 3:1 for large text (18pt+ or 14pt bold).
What counts as 'large text' in WCAG?▼
Large text is defined as 18pt (24px) or larger for regular weight, or 14pt (approximately 18.67px) or larger for bold text. The contrast requirement for large text is lower (3:1 for AA, 4.5:1 for AAA) because larger text is easier to read even at lower contrast ratios.
What is the difference between WCAG AA and AAA?▼
AA is the minimum standard required by most accessibility laws (including the ADA, EN 301 549, and AODA). AA requires 4.5:1 for normal text and 3:1 for large text. AAA is the enhanced standard — it requires 7:1 for normal text and 4.5:1 for large text. Most projects target AA; AAA is recommended for critical content like medical or legal information.
How is the contrast ratio calculated?▼
The WCAG formula converts hex colors to relative luminance values using the sRGB color space. Each channel (R, G, B) is linearized, then luminance L = 0.2126R + 0.7152G + 0.0722B. The contrast ratio is (L1 + 0.05) / (L2 + 0.05), where L1 is the lighter of the two luminances. This formula is standardized in WCAG 2.x and used by all major accessibility testing tools.
My design fails AA — what should I do?▼
Use this tool's alternative suggestions to find the closest passing shade. Common fixes: darken light text colors, lighten dark text on light backgrounds, or increase font size to meet the lower large-text threshold. Also consider using Tailwind's color scale steps — moving from gray-400 to gray-600 typically adds 2-3x contrast.
Related Products
on GumroadDeveloper Productivity Bundle
Stop rebuilding the same setup every project. 51 VSCode snippets, 40 Git aliases, 5 Docker Compose stacks, 5 GitHub Actions workflows, 5 README templates, and a dotfiles kit. Set up a professional dev environment in under an hour.
Buy on Gumroad →AI Prompt Engineering Toolkit
58 structured prompt templates for Claude, ChatGPT, and Gemini — organized by use case. Code Review, Debugging, Documentation, Architecture, and 10 model-specific tips. Stop writing prompts from scratch.
Buy on Gumroad →Developer Cheat Sheet Bundle
10 print-ready cheat sheets for the tools developers use every day: Git, Docker, Linux CLI, SQL, Regex, HTTP Status codes, VS Code shortcuts, Bash scripting, jq/JSON, and Markdown.
Buy on Gumroad →You Might Also Need
WCAG Contrast Checker
Check color contrast ratios against WCAG 2.1 AA and AAA accessibility standards. Pass/fail for normal and large text with live preview.
Open free tool →
Color Blindness Simulator
Simulate how colors look with different types of color blindness: protanopia, deuteranopia, tritanopia, and achromatopsia. Free accessibility testing tool.
Open free tool →
Color Palette Extractor
Parse hex color codes to build a visual palette. View swatches, generate shades, see complementary and triadic harmonies, and export CSS custom properties.
Open free tool →
More Free Tools
Related Articles
Color Picker Tools for Developers: HEX, RGB, HSL, and CSS Custom Properties in 2026
Use color picker tools effectively in web development. HEX/RGB/HSL conversion, CSS theming with custom properties, WCAG contrast checking, and palette generation.
WCAG Color Contrast Guide: Accessible Web Design
Master WCAG color contrast requirements for accessible web design. Understand contrast ratios, AA vs AAA standards, how to test your designs, and practical tips for passing accessibility audits.
Color Picker Hex RGB — Convert and Pick Colors for Web Development
Color picker hex RGB — convert between HEX, RGB, HSL, and CSS color formats instantly. Learn how color systems work in CSS, JavaScript, and design tools with practical examples.
ShadCN UI vs Radix UI vs Headless UI: Complete Component Library Guide 2026
In-depth comparison of ShadCN UI, Radix UI, and Headless UI for React in 2026 — customization, accessibility, bundle size, TypeScript support, and which to pick for your project.
shadcn/ui vs Radix UI vs Headless UI vs Ark UI: The Definitive React Component Library Comparison 2026
An in-depth 2026 comparison of shadcn/ui, Radix UI, Headless UI, and Ark UI — covering customization, accessibility, bundle size, TypeScript support, and which library fits your React project best.
Enjoying this tool? Get more like it.
Weekly developer tool guides, productivity playbooks & AI tricks. Free. No spam.
Unlock AI-Powered Dev Tools
- ⚡ AI Code Review, Doc Generator & SQL Builder
- ⚡ All premium templates & early access
- ⚡ Member discounts on Gumroad products
$9/mo after trial · Cancel anytime
Want the full toolkit?
Get DevPlaybook Pro
Every template, guide, boilerplate, and automation script in one bundle. 13 premium products — grab them all at once and save big.
MIT licensed · Instant download · No subscription
See what's included → Browse all deals →