Color Contrast Checker
Runs locallyCheck WCAG 2.2 AA/AAA and APCA contrast ratios and auto-suggest accessible color pairs.
What is Color Contrast Checker?
Verify foreground and background color combinations against WCAG 2.2 AA/AAA (normal text, large text, UI components) and APCA Lc scores. Automatically generate the nearest compliant shade when a pair fails.
How to use Color Contrast Checker
- Step 1
Enter or pick Foreground and Background colors (HEX, RGB, HSL, OKLCH).
- Step 2
Inspect WCAG 2.2 ratios and APCA perceptual score.
- Step 3
Click Suggest Compliant Color if a combination fails AA or AAA.
Features
- WCAG 2.2 AA (4.5:1 / 3:1) and AAA (7:1 / 4.5:1) checks
- APCA Lc perceptual contrast score via apca-w3
- One-click swap and accessible shade auto-suggestion
- Accepts HEX, RGB, HSL, and OKLCH inputs
Example
Input
FG: #0b1221 | BG: #2ee6a6
Output
12.14:1 · WCAG AAA Pass · APCA Lc 84
High-contrast pairing safe for body text, headings, and UI controls.
Frequently asked questions
What ratio does WCAG 2.2 AA require?
4.5:1 for normal text and 3:1 for large text (18pt / 14pt bold) and UI components.
How is APCA different from WCAG 2.x?
APCA accounts for polarity (light-on-dark vs dark-on-light) and font size/weight.
Can it suggest a passing color automatically?
Yes, click Suggest Accessible Pair to adjust lightness in OKLCH until AA/AAA passes.
Does it work offline?
Yes, runs locally in your browser.
Related tools
Color Converter & Contrast Checker
Convert HEX, RGB, HSL, HWB, OKLCH, OKLab, Display-P3, check WCAG/APCA contrast and export scales.
CSS Gradient Generator
Design linear, radial, conic and OKLCH gradients with export to CSS, Tailwind, SwiftUI and Compose.
PX to REM & Fluid Clamp Calculator
Convert px, rem, em, pt, vw, vh and % with Tailwind scale, fluid clamp() and type scales.