About HEX, RGB and HSL Converter
Turn a colour written one way into every other common way. Type a HEX code, an rgb() or hsl() value, a basic colour name, or three plain numbers, and you get HEX, RGB, HSL, HSV, CMYK and the decimal number at once. Opacity is kept if you include it.
How to use HEX, RGB and HSL Converter
- Type or paste a colour, for example #3366cc, rgb(51, 102, 204) or hsl(220, 60%, 50%).
- Read the HEX result at the top and the other formats below it.
- Use Copy on the result to paste it into your code or design tool, or press an example to see how each format looks.
Tips and good to know
- HEX codes can be 3, 4, 6 or 8 digits, and the # is optional. The last two digits of an 8-digit code are the opacity.
- Only a short list of basic colour names is built in (such as red, navy, teal and coral), not the full CSS list.
- HSL, HSV and CMYK are rounded to whole numbers, so converting back may differ by one step.
- CMYK here is a simple screen formula. A printer’s own colour profile can give a different result.
Short HEX and transparency
Three-digit HEX doubles each digit (#f80 = #ff8800); eight-digit HEX adds alpha, so #ff880080 is about 50% opaque.
Frequently asked questions
What is the difference between RGB and HSL?
RGB describes a colour by how much red, green and blue light it has. HSL describes it by hue (the position on the colour wheel), saturation (how vivid) and lightness (how light or dark), which is often easier to adjust by hand.
Why does my 8-digit HEX code show an opacity?
The last two digits are the alpha channel. 80 is about 50 percent, and FF is fully solid. The tool shows it as a percentage and writes the RGB and HSL versions with an alpha value.
Are my colours sent anywhere?
No. The conversion happens in your browser.
Is HEX, RGB and HSL Converter free?
Yes. HEX, RGB and HSL Converter is 100% free: no sign-up, no paid plan, no trial and no limit on how often you use it. It runs in your browser, and ToolzAura is paid for by ads, so every tool stays free.
Are my files uploaded?
No. This tool runs in your browser, so your input stays on your device.