WCAG Color Contrast & Palette Generator

Check WCAG 2.1 contrast ratios, simulate colorblindness, auto-fix failing colors, and generate 50–950 Tailwind palettes.

🔒 100% Client-Side • Zero Uploads
Edge API • Free Tier

Automate URL-to-Markdown & Metadata Extraction at Scale

Converting pasted HTML here? Need to extract LLM-ready Markdown, OpenGraph, JSON-LD & tech-stack signals from live URLs via API? Call CleanPage Edge API in milliseconds.

Try CleanPage Free on RapidAPI →
EthicalAds / Carbon / AdSense Slot 0 CLS
Automate Web Scraping & Edge APIs

Using WCAG Contrast & Shades manually? Batch-process live URLs with CleanPage Edge API or Apify Cloud Actors.

Explore Cloud Automation →

Recommended Hosting & SaaS Stack

Affiliate Partners
Free Tier Available Framer Sites & Design-to-Web

Ship responsive marketing pages with built-in CMS, animations, and edge hosting directly from design.

Start Free with Framer →
Developer Favorite DigitalOcean Droplets & App Platform

Deploy Node.js APIs, containers, and managed Postgres databases with predictable developer pricing.

Claim Developer Credit →

How to Use WCAG Contrast & Shades & Key Capabilities

Quick Workflow

  1. Pick or paste HEX colors for foreground text and background surface (or click Swap to reverse).
  2. Inspect AA/AAA badges and simulate Protanopia, Deuteranopia, or Tritanopia vision.
  3. 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.