Color & WCAG Contrast Checker
Convert between HEX, RGB/RGBA, and HSL/HSLA colors and verify WCAG 2.2 AA/AAA contrast ratios with alpha compositing.
WCAG 2.2 Contrast Evaluation
Alpha channels composited over effective opaque background.
Large Text Sample (18.66px bold / 24px regular threshold)
Normal body text contrast check: clear typography must remain readable across desktop monitors, mobile sunlight glare, and low-vision users.
Foreground Conversions
#1E293B#1E293BFFrgb(30, 41, 59)hsl(217, 33%, 17%)Background Conversions
#F8FAFC#F8FAFCFFrgb(248, 250, 252)hsl(210, 40%, 98%)Color Contrast Checker & WCAG 2.2 Compliance Guide
Check color contrast ratios against WCAG 2.2 AA and AAA accessibility standards with alpha compositing.
Overview
The Color Contrast Checker measures the relative luminance contrast ratio between foreground and background colors according to WCAG 2.2 guidelines. It supports HEX, RGB, RGBA, HSL, and HSLA color formats, performs semi-transparent alpha compositing over backgrounds, and gives PASS/FAIL badges for normal text, large text, and UI components.
How to Check Contrast Compliance
Enter colors via HEX (#RRGGBB, #RRGGBBAA), RGB/RGBA, or HSL/HSLA, or use the visual color pickers.
The tool calculates the contrast ratio from 1:1 up to 21:1 using WCAG relative luminance formulas.
Check compliance badges for Level AA (4.5:1 normal text, 3:1 large text/UI) and Level AAA (7:1 normal text, 4.5:1 large text).
Foreground: #1E293B | Background: #FFFFFF
Contrast Ratio: 13.9:1 | Level AA: PASS | Level AAA: PASS
Exceeds both the 4.5:1 normal text and 7:1 enhanced AAA thresholds, ensuring high readability for visually impaired users.
- HEX: 3, 4, 6, and 8 digits (#RGB, #RGBA, #RRGGBB, #RRGGBBAA).
- RGB / RGBA: rgb(r, g, b), rgba(r, g, b, a).
- HSL / HSLA: hsl(h, s%, l%), hsla(h, s%, l%, a).
- Performs mathematical alpha blending over effective background colors.
- All color calculations and palette previews execute 100% inside your browser.