Colour converter
Paste a colour in any format (HEX, rgb() or hsl()) and get all the others instantly.
Workspace · Colour converter
How to use it
Type or paste the colour: #ff8800, ff8800, rgb(255, 136, 0) or hsl(32 100% 50%).
Take a look at the preview and the converted values.
Copy the format you need with a single click.
Examples
HEX to RGB
#1e90ff is rgb(30, 144, 255).
RGB to HSL
rgb(255, 99, 71) is hsl(9, 100%, 64%).
Short HEX
#f80 is the same as #ff8800.
What you need to know
HEX and RGB describe the same information: the amount of red, green and blue on a scale from 0 to 255. HSL expresses this as hue (0–360°), saturation and lightness, which makes it easier to create variations of a colour.
It accepts 3-, 4-, 6- and 8-digit HEX values, and the rgb() and hsl() syntaxes with either commas or spaces, including the alpha channel.
Frequently Asked Questions
Related tools
Other tools that can help with similar tasks.
Colour picker
Choose a colour and get its HEX, RGB and HSL codes, along with its shades and contrast.
Colour palette generator
Create colour palettes and copy the HEX codes.
CSS Gradient Generator
Design linear or radial gradients and copy the CSS.
