Color Converter client-side
?
How to use Color Converter

The color converter translates a color between the HEX, RGB, and HSL formats. Enter a value in one of the formats and the tool instantly shows the equivalents, along with a visual preview of the color. It is very handy for designers and developers who move between a mockup, CSS, and a style guide. All conversions are computed in your browser, so your color values are never sent anywhere.

Convert colors between HEX, RGB and HSL formats.

ColorHEXRGBHSLCSSDev

How to use Color Converter

The color converter translates a color between the HEX, RGB, and HSL formats. Enter a value in one of the formats and the tool instantly shows the equivalents, along with a visual preview of the color. It is very handy for designers and developers who move between a mockup, CSS, and a style guide. All conversions are computed in your browser, so your color values are never sent anywhere.

Frequently asked questions

Which color formats are supported?

The tool handles the three most common web formats: HEX (for example #3366ff), RGB (rgb(51, 102, 255)), and HSL (hsl(225, 100%, 60%)).

What is the difference between RGB and HSL?

RGB describes a color by its red, green, and blue components, while HSL describes it by hue, saturation, and lightness. HSL is often more intuitive when adjusting a color by hand.

Is transparency (alpha) handled?

The conversion covers the base color. To handle transparency, you can add the alpha component separately in your CSS, for example with rgba or an eight digit HEX value.

Are my colors sent to a server?

No, all the math happens locally in your browser. No value is transmitted.