Color Converter
Convert between HEX, RGB and HSL with a live preview.
What this tool does
Designers talk in hex, developers often use RGB or HSL. This tool converts a colour between those formats so you can move a colour from a design file into CSS without guessing.
When to use it
- You have a hex colour from a design and need the RGB values for code.
- You want to lighten or darken a colour by adjusting its HSL values.
- You are matching a colour across different tools that use different formats.
- You need the CSS-ready form of a colour you picked visually.
How to understand this tool
HEX #E8622E RGB rgb(232, 98, 46) HSL hsl(17°, 80%, 55%)
HEX and RGB describe the same thing with different notation: three numbers for red, green and blue. HSL describes the same colour as hue, saturation and lightness, which is easier when you want a lighter, duller or more saturated version without guessing new numbers. All three are device values, not print values.
What it will not do
- It does not convert to CMYK for printing or to named CSS colours.
- It cannot pick a colour that is accessible; contrast depends on what sits next to it.
Questions people ask
What is HSL?
Hue, Saturation and Lightness — a way to describe colour that is often easier to adjust than RGB.
Why does the same colour have different values?
They are different notations for the same colour; none is more "correct" than another.
One thing worth knowing
This is a lightweight browser tool — for production-critical work, pair it with your normal linters and tests.