Home/Guides/Developer
🌈Developer

HEX, RGB, HSL and CMYK: Color Models Explained

Why one color has so many names, what each model is good at, and why a shade that glows on screen can look muddy in print.

6 min read

Why one color has so many names

The same shade of orange might be written #E85D26, rgb(232, 93, 38), hsl(17, 81%, 53%), or a set of CMYK ink percentages on a printer. These are not different colors β€” they are different color models, each a coordinate system for describing the same visible result. Understanding what each model is good at takes the mystery out of converting between them and explains why a color that glows on screen can look muddy in print.

RGB and HEX: the language of screens

Screens emit light, and they build every color by mixing three colored lights: red, green and blue. This is an additive model β€” start from black (no light) and add until you reach white (all three at full). Each channel runs from 0 to 255, giving 256 Γ— 256 Γ— 256 β‰ˆ 16.7 million colors.

HEX is simply RGB written in base-16 for compactness. #E85D26 breaks into three pairs: E8 = 232 red, 5D = 93 green, 26 = 38 blue β€” identical to rgb(232, 93, 38). Two hex digits cover 0–255 exactly, which is why web colors are six digits. Add a fourth pair or an rgba() alpha value and you also control transparency.

HSL and HSV: the language of humans

RGB is how machines store color, but it is unintuitive to adjust β€” to make a color β€œa bit lighter and less intense” you would have to nudge three numbers at once. HSL and HSV reorganize the same space around how people actually think about color:

  • Hue β€” the color itself, as an angle from 0 to 360Β° around a wheel (0 red, 120 green, 240 blue).
  • Saturation β€” how vivid or grey it is, from 0% to 100%.
  • Lightness (HSL) or Value/Brightness (HSV) β€” how light or dark.

This is why designers love HSL: to build a palette you fix the hue and just walk the lightness up and down, or rotate the hue by a fixed angle to find complementary colors. The model maps onto intention, not hardware.

CMYK: the language of ink

Print is the opposite of a screen. Paper starts white and you subtract brightness by adding ink: cyan, magenta, yellow and a key black (the K). Because ink absorbs light rather than emitting it, CMYK is a subtractive model and a physically smaller gamut than RGB. Some of the brightest, most saturated colors a screen can show β€” vivid greens, electric blues, pure orange β€” simply cannot be reproduced in standard process printing, which is why they shift duller when converted.

ModelUsed forMixingStarts from
RGB / HEXScreens, web, appsAdditive (light)Black
HSL / HSVDesign, color pickingReorganized RGBβ€”
CMYKPrintingSubtractive (ink)White paper

Converting between them

RGB, HEX, HSL and HSV are mathematically interchangeable β€” they describe exactly the same set of colors, so conversion among them is lossless and reversible. RGB to CMYK is different: because the printable gamut is smaller, the conversion approximates, and a proper print workflow uses color profiles (and ideally a calibrated proof) rather than a naive formula. The practical rule is simple: design in RGB/HEX for anything that lives on a screen, and convert to CMYK only when you are genuinely sending files to a printer β€” then expect, and check for, some shift in the most vivid colors.

Our color code converter translates instantly between HEX, RGB, RGBA, HSL, HSV and CMYK so you can grab whichever format your stylesheet, design tool or printer needs.

Frequently asked questions

Is HEX different from RGB?

No β€” HEX is just RGB written in base-16. #FF8800 and rgb(255, 136, 0) are the same color. HEX is compact for code; rgb() is easier to read and supports an alpha channel via rgba().

Why do my screen colors look duller when printed?

Screens emit light and can show a wider, more saturated range than ink on paper can absorb. When a bright RGB color falls outside the printable CMYK gamut, it gets mapped to the nearest reproducible color, which is usually less vivid.

Should I design in RGB or CMYK?

Design in RGB or HEX for anything shown on a screen, which is the vast majority of work. Only convert to CMYK when you are preparing files for physical printing, and confirm the critical colors on a proof.

What does the alpha channel control?

Alpha sets opacity, from 0 (fully transparent) to 1 in rgba() or 00–FF in 8-digit hex. It blends the color with whatever sits behind it and does not change the underlying hue.

Tools mentioned in this guide

Ad
πŸ“’Advertisement