Convert between HEX, RGB, HSL and HSV color formats
Color conversion is the process of translating between different color representation models (HEX, RGB, HSL, HSV). Different development contexts and design tools use different formats, so developers frequently need to switch between them.
| Model | Example | Use Case |
|---|---|---|
| HEX | #FF5733 |
CSS, design specs |
| RGB | rgb(255, 87, 51) |
Programming, image processing |
| HSL | hsl(11, 100%, 60%) |
Dynamic theming, color systems |
| HSV | H:11° S:80% V:100% | Photoshop color picker |
HSL Tip: Fix the hue H, adjust L to get lighter/darker variants of the same color:hsl(220,90%,56%) base → hsl(220,90%,85%) light bg → hsl(220,90%,35%) dark accent
HSL vs HSV: HSL L=100% is white; HSV V=100% is the brightest pure hue.
#FF5733 or rgb(255,87,51))The 3-digit shorthand (e.g., #F53) doubles each digit, equivalent to #FF5533. Use 6-digit notation when precision matters.
HSL maps to how humans perceive color — hue, saturation, and lightness can be adjusted independently. When building dynamic themes, changing just the H value shifts the entire palette.
Standard 8-bit RGB ranges from 0–255. Values above 255 have meaning in HDR contexts, but in CSS and regular web development they are clamped to 0–255.