All directions · auto-detects input

Color Format Converter

Paste a colour in HEX, rgb() or hsl() — get every format back with a live preview and one-click copy.

Detected format: HEX

HEX

#4fdbc8

RGB

rgb(79, 219, 200)

HSL

hsl(172, 66%, 58%)

One input, every output

No mode switching — the converter detects what you pasted and returns all three formats at once. Copy whichever your toolchain needs.

HSL rounds slightly

HEX↔RGB conversions are bit-exact; HSL rounds to whole degrees and percents. Treat HEX or RGB as the canonical value for exact work.

Bridge design and code

Designers hand over HEX, scripts speak RGB, humans think HSL. This tool is the translator between all three workflows.

How to use the color format converter

  1. Paste a colour

    HEX (#4fdbc8), rgb(79, 219, 200) or hsl(172, 66%, 58%) — the format is detected automatically.

  2. Check the preview

    The swatch confirms the parsed colour is the one you intended before you copy anything.

  3. Copy what you need

    Each format has its own copy button — HEX for stylesheets, RGB for scripts, HSL for hand-tuning.

  4. Mind HSL rounding

    If you need the exact original colour, prefer the HEX or RGB output over the HSL one.

Alpha channels are ignored — the converter works on the opaque colour only.

Frequently asked questions

Related tools

Need a custom tool?

We build calculators and internal tools for businesses — get in touch.

Directory last updated 2 December 2026.

Disclaimer: HSL output rounds to whole degrees and percentages — use the HEX or RGB value when pixel-exact colour matching matters.