Color Converter
Convert between HEX, RGB and HSL. Type a color in any of the three formats, or use the picker. Updates live.
Convert colors between HEX, RGB and HSL with a live preview swatch. Type or paste any common color format and see all the others instantly — great for CSS, design and development.
Color models: sRGB / HSL per CSS Color Module Level 4.
Preview
Type a color to convert.
How to use the HEX to RGB Color Converter
- Enter a HEX, RGB or HSL value.
- All other formats are computed instantly.
- Use the live swatch to confirm the color, and copy any value.
Frequently asked questions
How do I convert HEX to RGB?
Paste the hex code (like #ff6b35) and the RGB values appear immediately.
How do I convert RGB to HEX?
Enter rgb(r, g, b) and the hex code is shown instantly.
What is HSL?
Hue, Saturation, Lightness — an alternative color model that is easier to reason about when adjusting colors.
Does it support alpha / transparency?
Yes — RGBA and HSLA values with an alpha channel are supported.
Fun facts about Color Converter
- The human eye can distinguish roughly 10 million colours; 24-bit colour has about 16.7 million values, many of them indistinguishable side by side.
- HEX color codes use 6 hexadecimal digits because they represent three bytes — one each for red, green, and blue (00-FF per channel).
- HSL (Hue, Saturation, Lightness) was designed to be more intuitive than RGB — hue is the color wheel angle (0-360°), saturation is how vivid, and lightness is how bright.
- The CSS color specification now supports over 140 named colors, including 'rebeccapurple' (#663399), added in 2014 to honor Eric Meyer's daughter.
- Color blindness affects approximately 8% of men and 0.5% of women — the most common form is red-green color blindness.