HEX / RGB / HSL Converter

Convert color values between HEX, RGB and HSL and copy the format you need for CSS and design.

Free
Converted formats
#7c3aed
rgb(124, 58, 237)
hsl(262, 83%, 58%)

What is HEX / RGB / HSL Converter tool?

Convert a color between HEX, RGB and HSL representations. Read the equivalent values when translating a design specification into CSS or adjusting a color by hue and saturation. Translate a design HEX value into CSS RGB. Inspect the hue and lightness of a color.

How to use it

  1. Enter a supported HEX, RGB or HSL color.
  2. Inspect the color preview and equivalent representations.
  3. Copy the representation required by your stylesheet.

FAQ

No. HEX, RGB, and HSL are different representations of the same color. Minor rounding can occur when converting HSL values.

The tool accepts common 3-digit and 6-digit HEX colors, with or without the leading #.

Yes. The generated HEX, RGB, and HSL outputs are formatted for direct use in CSS.

Related Tools