Color & design

Color converter

Turn a HEX color into matching RGB and HSL values for your stylesheet.

Make it yours

Processed in your browser

Your result

A little input. A useful result.

Adjust the example inputs, then select Convert color.

A LITTLE KNOW-HOW

About this tool

Convert an opaque 3- or 6-digit HEX color to RGB and HSL representations. The swatch lets you check the color while the output provides CSS values you can copy into a design or stylesheet.

How to use it

  1. 1

    Enter a HEX color such as #6D5EF6 or #ABC.

  2. 2

    Convert the color to normalized HEX, RGB and HSL.

  3. 3

    Copy the format needed by your design tool or CSS.

Questions, answered

What does a 3-digit HEX value mean?

Each digit is repeated to make a 6-digit value. For example, #ABC expands to #AABBCC.

Does this handle transparency or color profiles?

This converter uses opaque sRGB colors. Alpha channels, wide-gamut profiles and named CSS colors are not accepted as input.