HEX vs RGB vs HSV vs CMYK: Color Codes Explained
Why does the same color have four different codes? Learn what HEX, RGB, HSV and CMYK mean, where each is used, and how to convert between them correctly.
Four Ways to Describe One Color
Screens mix light, printers mix ink, and designers think in terms of hue and brightness. Each color model fits one of those jobs.
| Model | Example | Used for |
|---|---|---|
| HEX | #1C6EA4 | CSS, HTML, Figma |
| RGB | rgb(28, 110, 164) | Screens, CSS, image editors |
| HSV | hsv(204, 83%, 64%) | Color pickers in Photoshop and GIMP |
| CMYK | cmyk(83%, 33%, 0%, 36%) | Printing |
HEX and RGB Are the Same Thing
A HEX code is just RGB written in base 16. In #1C6EA4, 1C is red (28), 6E is green (110) and A4 is blue (164). Each channel runs from 0 to 255, so a HEX code needs exactly six hex digits. Convert instantly with the [HEX to RGB Converter](/tools/hex-to-rgb) or the reverse [RGB to HEX Converter](/tools/rgb-to-hex).
HSV: How Designers Think
HSV describes a color by hue (the position on the color wheel, 0 to 360 degrees), saturation (how vivid it is) and value (how bright it is). To make a lighter or duller version of a brand color, you only change one number. Try the [HEX to HSV Converter](/tools/hex-to-hsv).
CMYK: Ink on Paper
Printers start with white paper and subtract light using cyan, magenta, yellow and black (K) inks. That is why the bright greens and blues you see on screen often look duller in print: they are outside the CMYK gamut.
Use the [RGB to CMYK Converter](/tools/rgb-to-cmyk) for a quick estimate. For brand-critical print jobs, always ask your printer for their ICC profile, because real presses vary.
Practical Tips
- Store brand colors as HEX in your design system and generate the rest.
- Check contrast between text and background in RGB space before you publish.
- Convert a whole palette at once by pasting one color per line into any of our converters.
- Need web safe colors? See the [216 web safe colors chart](/tools/hex-to-rgb/web-safe-colors).
Summary
HEX and RGB are for screens, HSV is for adjusting colors, and CMYK is for print. Convert with a tool rather than by eye, and expect small shifts when you move to print.
Try our free tools
Put these tips into practice with 45+ free online tools - no signup, no login.
Browse Free Tools