Color Converter & Contrast Checker
Convert between HEX, RGB, HSL, HSV, CMYK and OKLCH, and check WCAG contrast between two colors.
Your inputs and files never leave this device
Formats
- HEX
#5a50cc - RGB
rgb(90 80 204) - HSL
hsl(245 55% 56%) - HSV
245°, 61%, 80% - CMYK
56%, 61%, 0%, 20% - OKLCH
oklch(51.3% 0.185 281.3)
Tints & shades
Contrast
Sample text 123
Sample text 123
6.08:1
- Normal text AA pass
- Normal text AAA fail
- Large text & icons AA pass
- Large text & icons AAA pass
How to use
Enter a HEX code, rgb(), hsl() or a color name such as tomato to get every other format. CMYK is an approximation without a print profile.
Contrast uses the WCAG 2.1 formula (lighter luminance + 0.05) ÷ (darker + 0.05). Body text needs 4.5:1 and large text or icons 3:1 to pass AA.