Color Converter

HEX, RGB and HSL — type in any format and the others follow live, with a preview swatch and CSS values ready to copy.

How to use it

Start anywhere. Paste a HEX code, type RGB numbers, or slide HSL values into place.
Watch the swatch. Every format updates live so you can see the exact colour you are describing.
Copy the CSS. Take the rgb() or hsl() string straight into your stylesheet.

Why designers keep three formats in their pocket

HEX is compact and copy-paste friendly, so it is the language of brand guidelines and design tools. RGB matches how screens actually mix light, which makes it natural for canvas work and image code. HSL is the thinking format: keep the hue, nudge saturation down for a muted variant, raise lightness for a hover state, drop it for a pressed state — a whole interface palette from one base colour, without a colour wheel in sight. Converting between them by hand is error-prone arithmetic; this page does it live so the numbers never drift from the colour you see.

Related tools