WCAG 2.1 Color Contrast & Accessible Design Tokens Guide

Accessible typography improves conversion and readability on glaring mobile screens—not just compliance audits.

WCAG 2.1 Contrast Thresholds Cheat Sheet

  • AA Normal Text (< 18pt / < 24px regular): minimum 4.5:1 contrast ratio.
  • AA Large Text (>= 18pt / 24px regular or >= 14pt / 18.67px bold) & UI Components/Borders: minimum 3.0:1.
  • AAA Enhanced Contrast: 7.0:1 for body text and 4.5:1 for large display headings.

Practical Dark & Light Mode Token Rules

  • Avoid pure #000000 on #FFFFFF for long-form prose; slightly softened slate-ink (#0f172a on #f8fafc) preserves >15:1 contrast with lower eye strain.
  • Never convey error/success state via red vs green hue alone—pair color with explicit text labels or icons for Protanopia/Deuteranopia users.
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 →

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 →

Frequently Asked Questions

How do I fix a brand emerald button with white text that fails 4.5:1?

Either darken the button shade to step 600/700 using our WCAG Auto-Fix tool, or use deep ink text (#032217) over bright emerald (#10b981 / #34d399).

Do disabled buttons have to pass 4.5:1?

WCAG exempts inactive/disabled UI controls, though keeping disabled labels readable (~3:1) improves overall UX.