WCAG Color Contrast & Palette Generator
Check WCAG 2.1 contrast ratios, simulate colorblindness, auto-fix failing colors, and generate 50–950 Tailwind palettes.
Using WCAG Contrast & Shades manually? Batch-process live URLs with CleanPage Edge API or Apify Cloud Actors.
Recommended Hosting & SaaS Stack
Affiliate PartnersShip responsive marketing pages with built-in CMS, animations, and edge hosting directly from design.
Deploy Node.js APIs, containers, and managed Postgres databases with predictable developer pricing.
How to Use WCAG Contrast & Shades & Key Capabilities
Quick Workflow
- Pick or paste HEX colors for foreground text and background surface (or click Swap to reverse).
- Inspect AA/AAA badges and simulate Protanopia, Deuteranopia, or Tritanopia vision.
- Use Auto-Fix if contrast fails, or copy the generated 50–950 shade scale into CSS or Tailwind.
Built-In Capabilities
- Exact WCAG 2.1 relative luminance calculation with AA/AAA pass badges for normal and large text
- One-click Auto-Fix to AA (4.5:1) or AAA (7.0:1) by tuning lightness while preserving brand hue
- Generates an 11-step 50–950 color ramp with CSS variables and Tailwind config export
Frequently Asked Questions
What contrast ratio is required for WCAG 2.1 AA and AAA compliance?
WCAG AA requires 4.5:1 for normal text and 3.0:1 for large text (18pt+ or 14pt+ bold). AAA raises these thresholds to 7.0:1 and 4.5:1.
How does the One-Click Auto-Fix algorithm work?
It searches HSL lightness levels along your chosen hue until the exact WCAG target ratio (4.5:1 or 7.0:1) is met with minimal visual shift.
Why check colorblindness simulation alongside contrast?
About 8% of men experience red-green color vision deficiency; checking luminance contrast ensures UI states stay legible without relying on hue alone.
Can I export the generated palette directly to Tailwind or CSS?
Yes, click Copy CSS Variables or Copy Tailwind Scale to export all 11 shades (50 through 950) immediately.