How It Works Under the Hood
sRGB channels are linearized per the W3C WCAG 2.1 relative luminance equation (0.2126R + 0.7152G + 0.0722B) to score contrast ratios and search HSL lightness steps for compliant AA/AAA shades.
Step-by-Step Instructions
Pick or type Foreground text and Background surface hex colors.
Check PASS/FAIL badges for AA Normal (4.5:1), AA Large (3.0:1), and AAA Normal (7.0:1).
Click Auto-Fix if failing or click any stop in the 50–950 Tailwind ramp and copy CSS variables.
Key Features & Performance
- Instant Hue-Preserving Auto-Fix: Finds the closest compliant AA or AAA text lightness automatically
- Live UI Contrast Preview: Test body text, headings, and button borders in real context
- Tailwind 50–950 Scale Generator: Derives full accessible color ramps and CSS custom properties
- Zero Server Latency: Updates smoothly at 60fps as you pick colors
Local Browser Processing & Privacy
Traditional web converters upload your documents, snippets, or media files to remote servers. WCAG Contrast Checker & Accessible Tailwind Palette runs inside your browser tab:
Your input text and files are processed locally without uploading payloads to a processing server.
Microdeck does not log or store the files or inputs you paste into tool workspaces (normal static hosting/CDN requests still load page assets).
Working outputs stay in your browser tab and are released when you reset the tool or close the tab.
Frequently Asked Questions
What minimum contrast ratio does WCAG 2.1 Level AA require?
Level AA requires at least 4.5:1 for normal body text and 3.0:1 for large text (18pt regular or 14pt bold) and UI components.
How does Auto-Fix keep my brand look consistent?
Instead of jumping straight to black or white, Auto-Fix keeps your exact hue and saturation while stepping lightness until AA or AAA passes.
Explore Related Micro-Tools
SVG Optimizer (SVGO), Color Swapper & Exporter
Compress SVG weight 60–80%, swap palette colors in 1 click & export React / Vue / Astro
Modern CSS Smooth Shadows & Glass Generator
Generate layered smooth box shadows & frosted glassmorphism
CSS Fluid Clamp & Spacing Generator
Generate modern fluid clamp() CSS for responsive typography