How to use
Enter #RGB, #RRGGBB or rgb(r, g, b), then convert to view all three formats. RGB components must be integers from 0 to 255.
Example
#f00 → rgb(255, 0, 0) → hsl(0, 100%, 50%).
Convert HEX or RGB colors to HEX, RGB and HSL, with a color preview.
Enter #RGB, #RRGGBB or rgb(r, g, b), then convert to view all three formats. RGB components must be integers from 0 to 255.
#f00 → rgb(255, 0, 0) → hsl(0, 100%, 50%).
Supports opaque sRGB colors. Color names, alpha channels and percentage RGB are not accepted. HSL output is rounded to one decimal place.
Why is the hue of gray zero? Hue does not affect an achromatic color. This tool conventionally reports 0 with zero saturation.