Color Converter
Type a color in any format and get the others instantly.
How to convert a color
Type a HEX code, use the color picker, or enter RGB or HSL numbers. The other formats update at once and the swatch shows the color. Press Copy next to a format to use it in your CSS, design tool or document.
The three formats
HEX is a six-digit code such as #0D6B57, widely used on the web. A short form such as #0F0 is accepted too. RGB gives the amount of red, green and blue from 0 to 255. HSL gives hue (0 to 360 degrees), saturation and lightness in percent, which makes it easy to make a color lighter or darker.
Values are rounded to whole numbers, so converting back and forth can differ by one step.
Frequently asked questions
How do I convert HEX to RGB?
Type the HEX code and read the RGB box. For example, #FF0000 is rgb(255, 0, 0).
What does HSL mean?
Hue, saturation and lightness. Hue is the color on a 360-degree wheel, saturation is how vivid it is, and lightness is how light or dark.
Can I use a short HEX code?
Yes. #0F0 is treated as #00FF00.