Color Converter (HEX, RGB, HSL)

Convert colors between HEX, RGB, and HSL with a live preview. Paste any format and copy the others. Free and fully client-side.

// color● valid

Accepts HEX, RGB(A), and HSL(A)

About this colour converter

Design tools, CSS, and APIs each prefer different colour formats. This converter takes a colour in HEX, RGB, or HSL, shows a live preview, and gives you every other format ready to copy — so you can move a value from a mockup into your stylesheet without doing the maths by hand.

Common conversions

  • HEX to RGB for canvas and image work
  • RGB to HEX for CSS and design handoff
  • HEX or RGB to HSL for tweaking lightness and saturation

Frequently asked questions

Which colour formats are supported?
HEX (including shorthand and 8-digit with alpha), RGB and RGBA, and HSL and HSLA. Paste any one and the others are computed instantly.
Does it preserve transparency?
Yes. If your input includes an alpha channel (e.g. an 8-digit hex or an rgba/hsla value), the alpha is carried through to the other formats.
Is the colour data sent anywhere?
No. All conversion happens locally in your browser.

// More tools