Tool 05 / 08 · Color utilities · instant

Color Code Converter

Convert any color between HEX, RGB, HSL, CMYK, and OKLCH — instantly, with one-click copy for every format.

Paste HEX, rgb(91, 91, 214) or hsl(240, 60%, 60%)
HEX
RGB
HSL
CMYK
OKLCH
Recent colors

Colors you convert will appear here — saved in this browser only.

Example

One color, every format

The rose pink of a macaron shell — here's the exact same color in all five formats this converter outputs.

Pink macarons on a powder blue background

Macaron rose

HEX#D17180
RGBrgb(209, 113, 128)
HSLhsl(351, 51%, 63%)
CMYKcmyk(0%, 46%, 39%, 18%)
OKLCHoklch(66.1% 0.121 11.0)
About this tool

Why five color formats?

Every environment speaks a different color language. HEX rules the web and design handoffs, RGB is what screens actually emit, HSL is the easiest to reason about when you want "the same hue, a bit lighter", CMYK approximates ink for print work, and OKLCH is the modern CSS color space where equal steps finally look equal to the human eye. This converter keeps all five in sync from a single input, so you can grab whichever notation the job needs.

Choosing

Which format should you actually use?

All five describe the same color — they differ in what they make easy.

Gotchas

Small print of color conversion

Three things that surprise people the first time they convert colors seriously.

Keep going

Related tools & guides

FAQ

Frequently asked questions

What input formats are accepted?

HEX with or without the hash (#5B5BD6, 5B5BD6, or short #5BD), rgb(91, 91, 214), and hsl(240, 60%, 60%). You can also just click the swatch and pick visually.

What is OKLCH and why should I care?

OKLCH is a perceptually uniform color space now supported in CSS. Unlike HSL, changing only its lightness value produces steps that actually look evenly spaced, which makes it ideal for building color scales — try the Shades generator to see the idea in action.

Is the CMYK value print-accurate?

It's the standard formula conversion, which is a good starting point — but real print color depends on the printer's ICC profile, paper, and inks. For critical brand work, always confirm with your print shop's profile.