HEX / RGB / HSL Color Converter
Convert colours between HEX, RGB, HSL, HSV, CMYK and OKLCH, with alpha support and CSS-ready values.
Runs in your browser. Your input is processed on your device and is not uploaded to our server.
e.g. #ff8800, rgb(255 136 0), hsl(32 100% 50%), oklch(70% 0.18 55), tomato
How to use the HEX / RGB / HSL Color Converter
- Type a colour in any format, or use the colour picker.
- Read the equivalent values in every format.
- Copy the format you need.
Accepts #rgb, #rrggbb, #rrggbbaa, rgb(), hsl(), hwb() and CSS colour names. CMYK values are a simple device-independent conversion, not a print profile: ask your printer for accurate print colours.
Frequently asked questions
Why do my CMYK values differ from my design software?
Design software uses colour profiles for specific printing conditions. This converter uses the basic formula without a profile.