Color Converter

Enter an opaque HEX, RGB or HSL color to get the same sRGB color in the other formats. Use this to match a design token with the format your stylesheet or design app expects.

Workspace

Color values

Your result will appear here.

How to use it

  1. Enter a color value, such as #ff8000 or rgb(255, 128, 0).
  2. Check the swatch to confirm you entered the intended color.
  3. Copy the representation you need into the color field in your project.

Worked example

Input
#00ff80
Output
rgb(0, 255, 128)

Frequently asked questions

How do you read a six-digit HEX color?

Read the digits as three pairs for red, green and blue. Each pair runs from 00 to ff, which corresponds to 0 through 255. In #00ff80 the green channel is at full strength.

What do the three HSL values mean?

Hue picks the position on a color wheel, saturation sets the intensity, and lightness moves the color toward black or white. A zero-saturation HSL color is gray regardless of the hue.

Does the converter support transparency?

The converter handles opaque colors. Use the opaque color value here and keep any alpha or opacity setting separately in your design.