HomeHueLabHEX ↔ RGB ↔ HSL Converter
HueLab

HEX ↔ RGB ↔ HSL Converter

Convert colors between HEX, RGB and HSL instantly.

HEX ↔ RGB ↔ HSL Converter
#7C3AED
Live preview — type in any field below
HEX
6 digits like #7C3AED, or 3-digit shorthand like #F53
RGB
Each channel 0–255
HSL
Hue 0–360°, saturation & lightness 0–100%
How to use this tool
1

Type any format

Enter a HEX code, RGB values or HSL values — whichever you have.

2

See it convert live

The other formats update as you type, with a live color preview.

3

Copy what you need

One click copies HEX, RGB or HSL straight into your CSS or design tool.

Share this tool WhatsApp Facebook X Telegram LinkedIn

Frequently asked questions

What's the difference between HEX, RGB and HSL?

They describe the same color three ways: HEX is a 6-digit code (#7C3AED) common in CSS; RGB gives the red/green/blue channel values (0–255); HSL describes hue, saturation and lightness, which is more intuitive when tweaking colors.

Does 3-digit HEX shorthand work?

Yes — #F53 expands to #FF5533 automatically, just like in CSS.

Are conversions exact?

HEX ↔ RGB is exact. HSL involves rounding to whole numbers, so converting back and forth may shift a value by 1 — visually identical.

Is my data uploaded?

No. All conversion happens in your browser with plain JavaScript. Nothing leaves your device.

Can I use these values in CSS?

Yes — copy any format and paste it directly into your stylesheet. Every output is valid CSS.

About HEX ↔ RGB ↔ HSL Converter

The hex RGB HSL converter helps you convert colors between HEX, RGB and HSL instantly. It is intended for designers and developers preparing visual assets. Start with the input and settings shown in the tool above. Review the result before saving or reusing it, especially when converting between formats that support different features. Keep your original so you can compare the output or try another setting.

How to use HEX ↔ RGB ↔ HSL Converter

  1. Type any format — Enter a HEX code, RGB values or HSL values — whichever you have.
  2. See it convert live — The other formats update as you type, with a live color preview.
  3. Copy what you need — One click copies HEX, RGB or HSL straight into your CSS or design tool.

Key features

Related design tools

Explore HueLab · Privacy policy · Contact us