Color Contrast Checker
Check foreground and background contrast with WCAG 2.2 ratios and APCA readability scores, test translucent overlays, preview live UI cards, and fix failing shades in one click.
Optical Legibility Specimen
14px Regular Body Copy: Good color contrast ensures effortless reading across bright daylight screens, tired eyes at night, and low-vision displays without sacrificing your visual identity.
How to Use This Tool
- Pick or paste foreground text and background surface colors, or click Swap to invert polarity.
- Adjust foreground Alpha if checking semi-transparent captions, muted labels, or glassmorphic badges.
- If a pair fails AA (4.5:1) or AAA (7:1), click Auto-Fix to adjust foreground lightness in OKLCH cleanly.
Key Features
- Real-time WCAG 2.1/2.2 pass/fail badges for Normal Text (4.5:1), Large Text (3:1), AAA (7:1), and UI Components (3:1)
- Perceptual APCA (Wcag3 candidate) Lc contrast readout with polarity detection and minimum font-size lookup
- True foreground alpha transparency slider composited dynamically over your chosen background color
- 1-Click Auto-Fix Lightness (OKLCH) binary-searches lightness while preserving brand hue and chroma until AA/AAA passes
Frequently Asked Questions
WCAG 2.2 luminance ratios are the legal standard for ADA/EAA compliance, while APCA Lc accounts for polarity (light-on-dark vs. dark-on-light) and human font-weight perception.
Instead of tweaking HSL saturation/lightness—which causes hue drift—Auto-Fix binary-searches only the OKLCH Lightness channel (L) while holding hue (H) steady.
More Color Tools
View all tools →Tailwind Color Scale
Turn any brand color into a balanced 50–950 Tailwind scale with live contrast checks.
Color Picker & Eyedropper
Pick exact colors in HEX, RGB, HSL, or OKLCH and sample pixels directly from your screen.
Color Palette Generator
Press Spacebar to generate balanced palettes, lock favorite swatches, and export anywhere.