Color converter

Convert color between the different formats (hex, rgb, hsl and css name)

About Color converter

Converts a colour between the notations used on the web and in design tools: hex, rgb(), hsl(), hwb(), lch(), cmyk() and the CSS colour names. Edit any field or use the picker, and every other format updates.

When you would use it

How to use it

  1. Type a colour in any field (for example #1ea54c, rgb(30, 165, 76) or seagreen), or pick one with the colour picker.
  2. All other fields update as soon as the input is a valid colour.
  3. Copy the format you need with its copy button.

Things worth knowing

Frequently asked questions

Why does the name field stay empty?
Only the 148 named CSS colours have a name, and the match must be exact. #1ea54c is close to seagreen but is not seagreen, so no name is shown.
Which format should I use in CSS?
Hex is the most compact and universally supported. hsl() is easier to tweak by hand (lighter, darker, more saturated). Use the 8-digit hex or rgb() with alpha when you need transparency.

All the tools