How it works
Converts 3- or 6-digit HEX, rgb(), or hsl() input to HEX, RGB, and HSL. HEX output uses six uppercase digits; HSL values are rounded to integers.
Convert color values between HEX, RGB, and HSL.
#ff0000
HEX: #FF0000 RGB: rgb(255, 0, 0) HSL: hsl(0, 100%, 50%)
Converts 3- or 6-digit HEX, rgb(), or hsl() input to HEX, RGB, and HSL. HEX output uses six uppercase digits; HSL values are rounded to integers.
When a design value uses the wrong notation for a stylesheet, enter it and copy the three equivalent lines.
Color names, alpha channels, and 8-digit HEX are unsupported. RGB channels must be 0–255; HSL saturation and lightness must be 0–100%. Check commas, parentheses, and percent signs.
No. Named colors and values with alpha are not parsed.
The input area shows the accepted format and available controls for this tool.
No. Your input is handled in the browser you are using. Privacy