Loading Beyond the loop.

Colour Code Converter

Converts a colour between HEX, RGB and HSL, and shows you a live swatch of it.

This tool runs entirely in your browser. Nothing you enter is uploaded, transmitted or stored anywhere.
Accepts HEX (3, 6 or 8 digit), rgb(), rgba(), hsl() and hsla().

Common questions

Which formats can I paste in?
HEX in 3, 6 or 8 digit form, plus rgb(), rgba(), hsl() and hsla() notation. The tool works out which you used.
Is transparency kept?
Yes. An alpha value from an 8-digit HEX, rgba() or hsla() carries through to every output format.

More developer tools

See all
Contact