Color Converter
Convert any color between HEX, RGB, and HSL, with a live swatch and color picker.
#4d90fergb(77, 144, 254)hsl(217, 99%, 65%)What is a color converter?
A color converter changes a color value from one format to another, such as HEX, RGB, or HSL, while keeping the same underlying color. This is useful when working with CSS, design tools, websites, and development projects that use different color formats.
Convert HEX, RGB, and HSL color values
This free online color converter turns supported HEX, RGB, and HSL values into the other formats. Enter a value, review the live swatch, and copy the normalized output for CSS, design, or development work.
How to use the color converter
- 1
Enter a color value
Enter a supported HEX, RGB, or HSL color value.
- 2
Review the color
Check the live color swatch to see the selected color.
- 3
Get the converted values
View the equivalent HEX, RGB, and HSL values generated by the converter.
- 4
Use the converted color
Copy the normalized value for use in CSS, design, or development work.
When to use HEX, RGB, or HSL
HEX is a compact format commonly used in CSS and web design. RGB represents a color using red, green, and blue channel values, while HSL describes a color through hue, saturation, and lightness. Converting between these formats can make it easier to work with the same color across code and design tools.
Why normalized color values matter
Equivalent colors can be written in different ways, such as shorthand HEX or RGB function syntax. Normalizing the value makes it easier to compare colors and move the same color between design tools and code, but rounding and range handling can slightly change how the text is written.
Frequently asked questions
- Yes, completely free with no signup or usage limit.
- No. The conversion happens directly in your browser.
- Hex codes (#4d90fe), rgb(...) or bare r,g,b, and hsl(...) are all accepted.
- Yes. Three-digit HEX values are accepted and expanded into their six-digit equivalent in the normalized output.
- Hue is normalized around the color wheel, while saturation and lightness are constrained to their supported percentage ranges before output is produced.
- Yes. RGB and HSL output values are normalized for display, so small decimal differences can be rounded in the generated result.
- Yes. The converter accepts a bare comma-separated RGB value as well as rgb(...) syntax, as long as the channel values are valid.
- No. This tool converts typed color values. Use the Color Picker from Image tool to sample a pixel from an uploaded picture.
Related tools
Or browse the full list of free tools.