Color Converter

One color, five languages: type a value in HEX, RGB, HSL, HSV or CMYK and every other format rewrites itself instantly — no formulas to remember, no arithmetic to get wrong.

1Enter a color in any format
2Watch all formats update
3Copy the format you need

RGB — red, green, blue (0–255)

HSL — hue, saturation, lightness

HSV — hue, saturation, value

CMYK — cyan, magenta, yellow, black (0–100%)

Choosing a color visually instead? Use the Color Picker — it adds tints and shades of your color.

Private by design: 100% in your browser — nothing is uploaded, no sign-up. This tool runs entirely on your device.

How to use this color converter

Start anywhere. Type a HEX code into the HEX field, drag the red, green and blue numbers, set a hue in the HSL group, or enter ink percentages in the CMYK group — the moment one format changes, all the others rewrite themselves to describe the same color, and the preview swatch at the top follows. There is no Convert button to press and no wrong door to enter by: the page treats every format as a first-class citizen and keeps them all in sync while you work.

When the color reads correctly in the format you need, copy it with the matching button. The summary block at the bottom always shows all five notations stacked together, which is handy when you are filling in a brand sheet or answering a client who asked for “the print values” while your design file only shows HEX. If you arrived with a color in a design tool that speaks HSV — many image editors do — this page is the bridge: paste the HSV numbers and read off the HEX your stylesheet wants.

Two habits will save you pain. First, convert from the most precise source you have: RGB and HEX carry the full 16.7 million colors, while HSL, HSV and CMYK values rounded to whole numbers can drift a channel by one step when converted back. Second, remember that CMYK here is a mathematical conversion, not a press profile — perfect for documents and office printing, but a commercial print job still deserves a proof from the printer.

Example: pure red in all five formats

The most saturated red a screen can show, written every way this converter knows:

HEX #FF0000 RGB rgb(255, 0, 0) HSL hsl(0, 100%, 50%) HSV hsv(0, 100%, 100%) CMYK cmyk(0%, 100%, 100%, 0%)

Each line teaches something. The HEX pairs FF, 00, 00 are just the RGB numbers in base 16. HSL puts red at hue 0° with full saturation and exactly half lightness — the pure color lives midway between black and white. HSV agrees on hue and saturation but reports value 100%, because its brightness scale tops out at the pure color itself. And CMYK reaches red by laying down full magenta and full yellow ink with no cyan and no black — a reminder that print builds colors by subtraction, screens by addition.

Why so many formats exist

Each format survives because it matches a different job. HEX is compact and unambiguous, the small change of the web — ideal for passing a color in an email or a style guide. RGB mirrors the hardware: screens literally mix red, green and blue light, so graphics code and canvas work think in RGB. HSL and HSV rearrange the same information around human questions — which family, how vivid, how bright — which is why designers adjusting a color by hand reach for them. CMYK belongs to the physical world of ink on paper, where the question is not how much light but how much of each ink a press should lay down. A converter is not five tools in a trench coat; it is one color viewed from the five workplaces that use it.

HSL versus HSV — the confusion, settled

The two models share hue and a similar saturation, then part ways. In HSL, lightness 50% is the pure color, 100% is always white and 0% is always black, no matter the hue. In HSV, value 100% is the pure color at full brightness and 0% is black, but there is no setting that gives white directly — white is value 100% with saturation 0%. This is why the same red reads hsl(0, 100%, 50%) but hsv(0, 100%, 100%). Neither is wrong; they are two different maps of the same territory. If a tool gives you numbers that look off by exactly this pattern, you are not looking at an error — you are looking at the other model. Convert, do not correct.

Frequently asked questions

How do I convert HEX to RGB?

Split the HEX code into three pairs and read each pair as a hexadecimal number. In #FF0000 the pairs are FF, 00 and 00, which are 255, 0 and 0 in decimal — so the RGB value is rgb(255, 0, 0). Type the HEX code into this converter and it does the pair-splitting and base-16 arithmetic for you.

What is the difference between HSL and HSV?

Both start from the same hue and saturation ideas, but they measure brightness differently. HSL's lightness runs from black through the pure color to white, so the pure color sits at 50%. HSV's value is simply the brightness of the strongest channel, so the pure color sits at 100% value. Design tools often use HSL; color pickers and image editors often use HSV (also called HSB).

What is CMYK used for?

CMYK — cyan, magenta, yellow and black ink percentages — is the language of printing. Screens mix light, printers mix ink, so a color that must survive on paper should be checked in CMYK before it goes to a print shop. This converter shows the standard mathematical CMYK equivalent of any screen color.

Can I type a HEX value without the # sign?

Yes. The HEX field accepts values with or without the leading #, and it also understands the short 3-digit form — #F00 means the same as #FF0000. If the value is not valid hexadecimal, the tool tells you instead of guessing.

Why do converted values sometimes differ by one?

Formats store color with different precision. HSL and HSV round hue, saturation and lightness to whole numbers, and CMYK rounds to whole percents, so converting forth and back can shift an RGB channel by one step out of 255. The difference is far below what any screen or eye can show.

Which format should I use in my CSS?

Browsers accept HEX, RGB and HSL everywhere, and modern browsers also accept HSV-style input through hsl() only in its HSL form. HEX is the safest default for fixed brand colors; HSL is easiest to adjust by hand; RGB is the natural choice when you need an alpha channel for transparency, written as rgba().

How is this different from the Color Picker tool?

The Color Picker is built for choosing a color visually and exploring its tints and shades. This converter is built for translation: you arrive with a value in one format — including HSV and CMYK, which the picker does not cover — and leave with the same color written in all five formats, each with its own copy button.

Can CMYK converted from RGB be used for professional printing?

It is a good starting point and fine for office printing, but professional print work uses ICC color profiles that account for the specific press, ink and paper. Treat the converted CMYK as a close approximation and always ask your printer for a proof before a large run.

Is anything I convert uploaded or tracked?

No. All conversions run in JavaScript in your own browser. Colors you enter are never sent to a server or stored anywhere — closing the tab clears everything.

Related tools