Color Converter
Convert colors between different formats: HEX, RGB, HSL, and CMYK.
Understanding Color Formats
Different color formats serve different purposes in design and development. Understanding when to use each format helps you work more efficiently across various tools and platforms.
HEX (Hexadecimal)
The most common format for web colors. HEX codes represent colors using six hexadecimal digits (0-9, A-F), where pairs represent red, green, and blue values respectively. The "#" prefix indicates it's a HEX color.
- Format: #RRGGBB (e.g., #FF5733)
- Range: 00-FF for each channel (256 values each)
- Total colors: 16,777,216 possible combinations
RGB (Red, Green, Blue)
Additive color model used in screens and digital displays. Each channel ranges from 0 to 255, representing the intensity of each primary color. When all three are at maximum (255), the result is white; when all are 0, it's black.
- Format: rgb(R, G, B) or R, G, B
- Range: 0-255 for each channel
- Used in: CSS, digital design, programming
HSL (Hue, Saturation, Lightness)
A more intuitive model based on how humans perceive color. HSL makes it easier to create color variations by adjusting individual components.
- Hue: Color angle on the color wheel (0-360°)
- Saturation: Color intensity (0-100%)
- Lightness: Brightness level (0-100%)
CMYK (Cyan, Magenta, Yellow, Key/Black)
Subtractive color model used in printing. Unlike RGB which adds light, CMYK subtracts light from white paper. The "K" stands for "Key" (black) because it's the key plate in printing.
- Format: C%, M%, Y%, K%
- Range: 0-100% for each channel
- Used in: Print design, commercial printing
When to Use Each Format
- HEX: Web development, CSS, design software
- RGB: Programming, screens, digital art
- HSL: Creating color schemes, adjusting colors
- CMYK: Print materials, commercial printing
Common Colors
| Red | #FF0000 | |
| Green | #00FF00 | |
| Blue | #0000FF | |
| Yellow | #FFFF00 | |
| Magenta | #FF00FF | |
| Cyan | #00FFFF |
HSL Color Wheel
- 0° = Red
- 60° = Yellow
- 120° = Green
- 180° = Cyan
- 240° = Blue
- 300° = Magenta