UTILS.
Private by default
◐

Color Converter

Convert colors between HEX, RGB and HSL with a live preview.

Your files stay on this device

Files are processed in your browser, never uploaded. The site downloads code and assets to run the tools. No accounts or trackers.

Use Download to save this tool as one HTML file for offline use.

Privacy →
RGB
HSL

Click the RGB or HSL value to copy it.

About this tool

Pick a color or type a HEX value and instantly see its RGB and HSL equivalents with a live swatch. Click any value to copy it. Great for CSS, design systems and matching brand colors.

Type a 3-digit or 6-digit HEX code, with or without the leading #, or use the colour picker. The tool shows the matching rgb() and hsl() values, rounded to whole numbers, and updates the swatch. For example, the default #ff5e1a is rgb(255, 94, 26) and hsl(18, 100%, 55%).

Because RGB and HSL are rounded, converting a value back may differ by one step in a channel. Eight-digit HEX codes with an alpha channel are not supported.

Frequently asked questions

What is HSL?
HSL describes a color by Hue (0–360°), Saturation and Lightness. It is often more intuitive than HEX for tweaking shades.
Does it support 3-digit hex?
Yes. Shorthand like #f80 is expanded automatically to its 6-digit form.
Why is my HEX code rejected?
Only 3-digit and 6-digit HEX codes are accepted, using the characters 0 to 9 and a to f. An 8-digit code with an alpha value, or a named colour such as teal, is not recognised here.

More tools