Convert between color formats on the front end
Take the HEX from a design file and get RGB, HSL and CMYK reference values in seconds.
Guide
Color tools parses CSS colors with colord plus its CMYK, accessibility and mix plugins, then shows the same color as HEX, RGB, HSL, HSV and CMYK and generates ten-step scales towards white and towards black. There is a foreground/background contrast checker as well, and screen colour picking through EyeDropper wherever the browser supports it.
Updated 2026-09-102 min read
rgb(), hsl(), a color name — or use the native color picker.| Input | Output | Notes |
|---|---|---|
#6366f1 |
HEX/RGB/HSL/HSV/CMYK | One color, several notations |
| Black text on a white background | 21:1 | High contrast |
| An invalid CSS color | An error message | No guessing, no auto-fix |
colord's support for CSS color syntax; it is not a complete parser for every future color function a browser may add.colord.tints(10) / shades(10) and are not the fixed palette of any design system.Take the HEX from a design file and get RGB, HSL and CMYK reference values in seconds.
Enter a brand color and a background color and confirm quickly whether the pair clears AA or AAA.
The button is disabled when the current browser has no EyeDropper API; use the browser's own developer tools or an environment that supports the API instead.
No. This is a mathematical conversion between color notations, without ICC profiles, paper stock or press configuration.
Color calculations run locally in the browser; EyeDropper only returns a single color value after you invoke it yourself, and no screen content is uploaded.
Updated 2026-09-10
HEX/RGB/HSL/HSV/CMYK conversion, shade scales, contrast checker and screen color picking
Accepts any CSS color format: HEX, rgb(), hsl(), color names and more
Note: picking from the screen needs a browser that supports the EyeDropper API (Chrome / Edge 95+)
| HEX | #6366f1 | |
| RGB | rgb(99, 102, 241) | |
| HSL | hsl(239, 84%, 67%) | |
| HSV | hsv(239, 59%, 95%) | |
| CMYK | cmyk(59%, 58%, 0%, 5%) |
10 steps towards white (tints) and 10 towards black (shades); click a swatch to copy
Checks how readable the text is on the background, against WCAG 2.0
Large text means 18pt (about 24px) and above, or 14pt and above in bold