Color Converter (HEX, RGB, HSL, CMYK)
Convert colors between HEX, RGB, HSL, HSV, and CMYK with live WCAG 2.1 AA/AAA contrast ratios.
Runs on your deviceHEX, RGB → HEX, RGB, HSL, HSV, CMYK
#5746EA
White text contrast6.05:1 AA
Black text contrast3.47:1 Low
HEX
#5746EA
RGB
rgb(87, 70, 234)
HSL
hsl(246, 80%, 60%)
HSV
hsv(246, 70%, 92%)
CMYK
cmyk(63%, 70%, 0%, 8%)
How to use
- 01.
Pick a swatch, type a HEX code (e.g. #5746EA), or adjust R/G/B channels.
- 02.
Copy HEX, RGB, HSL, HSV, or CMYK notations with one click.
- 03.
Check WCAG 2.1 contrast scores against white and black text automatically.
Design-token color math with accessibility built in
Verifies relative luminance per WCAG 2.1 so you immediately know whether white or dark ink achieves AA (4.5:1) or AAA (7:1) readability on your brand color.
Limits & privacy
- 100% client-side color computation.
Frequently asked questions
What contrast ratio is required for WCAG AA normal text?
WCAG 2.1 Level AA requires at least 4.5:1 for normal text and 3.0:1 for large text (18pt+ or 14pt bold).