Colour format converter calculator

Converts opaque three- or six-digit HEX into sRGB channel values and HSL.

Your inputs

Input format

Use this format with your own values:

#ff0000

Use the units shown.

RGB and HSL
rgb(255, 0, 0); hsl(0, 100%, 50%)

Your calculation
How is this calculated?

Converts opaque three- or six-digit HEX into sRGB channel values and HSL. No ICC profile conversion is performed.

Try an example

Worked example

RGB and HSL: rgb(255, 0, 0); hsl(0, 100%, 50%)

Inputs
  • HEX colour: #ff0000

Compare inputs

RGB and HSL: rgb(0, 255, 0); hsl(120, 100%, 50%)

Inputs
  • HEX colour: #00ff00
Share this page
Share this calculator

Leave unchecked to share the page without your entered values.