Converters

Color Converter

Convert colors between HEX, RGB, and HSL formats with a live visual preview. Free tool for designers and developers.

View all Converters

Continue Workflow

Related tools to try next

All tools
Browser Local No sign-up

Example

Convert HEX to RGB and HSL

HSL is often easier to adjust when creating lighter or darker UI states.

Input


                        #2991ff
                      

Output


                        rgb(41, 145, 255)
hsl(211, 100%, 58%)
                      

Practical Notes

How to Use

  1. 1. Enter a HEX, RGB, or HSL color value in its field.
  2. 2. Review the live preview to confirm the color.
  3. 3. Copy the HEX value or use the converted RGB and HSL values in CSS.
  4. 4. Adjust the source color until the converted formats match your design.

Features

Use Cases

Frequently Asked Questions

What is the difference between HEX and RGB?
HEX writes red, green, and blue channels in hexadecimal. RGB writes the same channel values as decimal numbers from 0 to 255.
When should I use HSL?
Use HSL when you want to adjust lightness or saturation while keeping the same hue, such as creating hover or dark mode variants.
Can I use these values directly in CSS?
Yes. HEX, RGB, and HSL values are all valid CSS color formats.
Is my color data stored?
No. Conversion happens locally in your browser.