Toolbuns/Color Converter

Color Converter

Convert a HEX color (3- or 6-digit) to RGB and HSL.

HEX#7c6fff
RGBrgb(124, 111, 255)
HSLhsl(245, 100%, 72%)

Convert colors between HEX, RGB, and HSL instantly, with a live preview. A simple, private tool for designers and developers.

How to use Color Converter

  1. Enter a color in HEX, RGB, or HSL.
  2. See the equivalent values in the other formats.
  3. Preview the color swatch.
  4. Copy the format you need.

Frequently asked questions

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

They are three ways to write the same color: HEX is compact for code, RGB sets red/green/blue channels, and HSL (hue, saturation, lightness) is intuitive for adjusting tints and shades.

Can I convert colors with transparency?

The converter focuses on solid colors across HEX, RGB, and HSL. For alpha, add it in your code (for example rgba or an 8-digit HEX).

Is anything I enter saved?

No. Conversion runs locally in your browser; nothing is stored.

Related tools
GradientBox Shadow