# HEX, RGB, HSL, and CMYK: The Ultimate Color Format Conversion Guide
Color codes exist in multiple mathematical formats depending on whether you are designing for screens (RGB, HEX, HSL) or printing physical material (CMYK). Understanding how these systems differ is essential for developers and designers alike.
---
## Digital vs. Print Color Formats
### 1. RGB (Red, Green, Blue)
The foundation of screen display. Each channel ranges from `0` to `255`. White is `rgb(255, 255, 255)`, and black is `rgb(0, 0, 0)`.
- Test our [RGB to HEX Converter](/tools/color/rgb-to-hex) or [RGB to HSL Converter](/tools/color/rgb-to-hsl).
### 2. HEX (Hexadecimal)
A concise representation of RGB using 6 hexadecimal characters (`#RRGGBB`). HEX is the standard format for HTML and CSS stylesheets.
- Use our [HEX to RGB Converter](/tools/color/hex-to-rgb) and [HEX to HSL Converter](/tools/color/hex-to-hsl).
### 3. HSL (Hue, Saturation, Lightness)
HSL is far more intuitive for human designers:
- **Hue (0–360°):** The color wheel angle.
- **Saturation (0–100%):** The color purity.
- **Lightness (0–100%):** How close to black (0%) or white (100%) the color is.
- Explore with our [HSL to RGB Converter](/tools/color/hsl-to-rgb) and [HSL to HEX Converter](/tools/color/hsl-to-hex).
### 4. CMYK (Cyan, Magenta, Yellow, Key/Black)
Subtractive color model used for physical ink printing. Converting from digital RGB to print CMYK requires careful gamut mapping.
- Try our [CMYK to RGB Converter](/tools/color/cmyk-to-rgb) and [RGB to CMYK Converter](/tools/color/rgb-to-cmyk).
Explore all 15+ browser color converters in our [Color Tools Suite](/tools/color).
Was this article helpful?
Your feedback helps us create better content.