Bidirectional conversion
Change any value — HEX, RGB slider, or HSL slider — and all other formats update in real time.
Convert colors between HEX, RGB, and HSL formats instantly. Type a hex code, drag the sliders, or use the color picker — all formats update live.
Change any value — HEX, RGB slider, or HSL slider — and all other formats update in real time.
Use the native browser color picker to visually select any color and see all three formats instantly.
Copy any format with a single click. HEX, rgb(), and hsl() output is ready for CSS.
#3B82F6
rgb(59, 130, 246) · hsl(217°, 91%, 60%)
6-digit hex code
HEX
#3B82F6
RGB
rgb(59, 130, 246)
HSL
hsl(217, 91%, 60%)
Step 1
Type a HEX code, adjust RGB or HSL sliders, or use the color picker to choose any color.
Step 2
All three formats — HEX, RGB, and HSL — update instantly as you change any value.
Step 3
Click the copy button next to any format to copy the CSS-ready value.
HEX is a 6-digit hexadecimal code commonly used in HTML/CSS. RGB represents Red, Green, Blue channels from 0–255. HSL represents Hue (0–360°), Saturation (0–100%), and Lightness (0–100%) and is more intuitive for color adjustments.
Yes. The converter is fully bidirectional — adjusting HSL sliders updates both the RGB values and the HEX code in real time.
Very similar HEX values may produce nearly identical RGB and HSL output due to the quantization of 8-bit color channels.