Color conversion
Hex to RGB Converter with HSL, HSV & OKLCH
Convert 3, 4, 6 or 8 digit Hex color codes to RGB, RGBA, HSL, HSV and OKLCH, including alpha transparency.
Red
59
Green
130
Blue
246
Color formats
How to use this tool
Paste a Hex code with or without the # symbol. Short Hex, Hex with alpha and eight-digit Hex formats are expanded and converted automatically.
- 1 Paste a Hex color code.
- 2 Review the expanded color and transparency.
- 3 Copy the format needed by your design or code.
Frequently asked questions
What is three-digit Hex?
#369 is shorthand for #336699. Each digit is repeated to create the full six-digit value.
What is eight-digit Hex?
The first six digits describe RGB and the final two digits describe alpha transparency.
Can I convert Hex to HSL?
Yes. Every valid Hex value is converted to RGB, RGBA, HSL, HSV and OKLCH on the same page.
Do I need to type the # symbol?
No. You can paste Hex codes with or without # and the converter will normalize the value.