Converter

HEX · RGB · HSL Color Converter

Convert common color formats instantly and preview the selected color.

How the color converter works

Step 1

Enter a color value

Type or paste a color as HEX (#2F5FED) or RGB (rgb(47, 95, 237)) into the input field.

Step 2

Convert

Click Convert to parse the value and calculate the equivalent HEX, RGB and HSL representations.

Step 3

Copy the result

Use Copy HEX to grab the hex code, or read the RGB and HSL fields directly for your CSS or design tool.

Frequently asked questions

Which color formats are supported?

HEX and RGB input are recognized automatically, and the tool always outputs matching HEX, RGB and HSL values.

Is the preview swatch accurate?

Yes. The preview renders using the exact parsed value, so it matches what a browser would display for that same color code.

Is my color data sent to a server?

No. Parsing and conversion run locally in your browser; nothing is uploaded.