Color Converter
HEX ⇄ RGB ⇄ HSL
About the Color Converter
Convert colour codes between HEX, RGB and HSL formats with a live preview. Type a value in any format to get the others.
- Type a colour in HEX, RGB or HSL.
- See the other formats instantly.
- Copy the value you need.
Frequently asked
How do I convert HEX to RGB?
Split the six digits into three pairs and convert each from hexadecimal to decimal. #FF8800 becomes rgb(255, 136, 0).
What is HSL?
Hue, Saturation, Lightness: a more intuitive way to describe colours, which makes it easy to create lighter or darker variations.
Does it support transparency?
Use rgba() or hsla() in CSS and add an alpha value from 0 (transparent) to 1 (opaque).
Is what I type sent to a server?
No. The tool runs entirely in your browser and there's no server behind it, so what you type never leaves your device and nothing is stored. You can check: it keeps working if you go offline after the page has loaded.
More from the Design & Colour drawer
Other tools kept in this drawer, plus a few favourites from the bench.