Color Converter
Convert instantly between HEX, RGB and HSL color codes. Pick a color with the picker or type a HEX code, and every format updates live.
What Are HEX, RGB and HSL Color Formats?
On the web and in design, colors are written in different formats. HEX (#RRGGBB) encodes red, green and blue in hexadecimal. RGB (rgb(255, 0, 0)) gives the same three channels as decimal values from 0 to 255. HSL (hsl(0, 100%, 50%)) defines a color by hue, saturation and lightness, which is handy for producing lighter or darker variants of a color. This tool converts between all three instantly.
Example Colors
| Color | HEX | RGB | HSL |
|---|---|---|---|
| Red | #FF0000 | rgb(255, 0, 0) | hsl(0, 100%, 50%) |
| Green | #00FF00 | rgb(0, 255, 0) | hsl(120, 100%, 50%) |
| Blue | #0000FF | rgb(0, 0, 255) | hsl(240, 100%, 50%) |
Frequently Asked Questions
Can I type a short HEX (#RGB)?
Yes. A 3-digit HEX like #0AF is automatically expanded to #00AAFF.
Can I use the color picker?
Yes, click the color box on the left to pick a color visually; the HEX and other formats update instantly.
Is RGBA / transparency supported?
This tool currently converts opaque colors (HEX/RGB/HSL); the alpha (transparency) channel is not yet supported.