Color Converter
Convert colors between HEX, RGB, and HSL. Use the native color picker or type any value — all formats update in real time.
R
G
B
rgb(168, 85, 247)
H°
S%
L%
hsl(281, 91%, 65%)
Frequently Asked Questions
What is the difference between HEX, RGB, and HSL?
HEX is a 6-digit hexadecimal representation (#rrggbb). RGB uses three 0-255 values for red, green, blue. HSL uses hue (0-360°), saturation (0-100%), and lightness (0-100%) — often more intuitive for designers.
How do I convert HEX to RGB?
Split the 6-digit HEX into three pairs and convert each from base-16 to decimal. For example, #A855F7 → R:168 G:85 B:247.
What does HSL mean in CSS?
HSL stands for Hue, Saturation, Lightness. In CSS you write it as hsl(270, 91%, 65%). It is easier to create color variations than RGB because you can adjust lightness and saturation independently.