Worked example
RGB and HSL: rgb(255, 0, 0); hsl(0, 100%, 50%)
Inputs
- HEX colour: #ff0000
Converts opaque three- or six-digit HEX into sRGB channel values and HSL.
Use the units shown.
Converts opaque three- or six-digit HEX into sRGB channel values and HSL. No ICC profile conversion is performed.
RGB and HSL: rgb(255, 0, 0); hsl(0, 100%, 50%)
RGB and HSL: rgb(0, 255, 0); hsl(120, 100%, 50%)