RGB to HSL

Convert RGB color values to HSL format.

Convert RGB colours to HSL (hue, saturation, lightness): rgb(255, 87, 51) becomes hsl(11, 100%, 60%). HSL is easier to adjust by hand, because you can make a colour lighter, darker or less saturated by changing one number. Type one colour or several, one per line, and each is shown with a swatch, plus HEX, HSV, CMYK and the nearest CSS name for the first one.

HSL

hsl(11, 100%, 60%)

HEX#FF5733
RGBrgb(255, 87, 51)
HSLhsl(11, 100%, 60%)
HSV / HSBhsv(11, 80%, 100%)
CMYKcmyk(0%, 66%, 80%, 0%)
CSS nametomato (closest)

Common use cases

  • Make lighter and darker shades of a brand colour
  • Write CSS colours you can tweak by hand
  • Build a colour scale for a design system

How to use

  1. Type an RGB colour, or several on separate lines.
  2. Copy the HSL value.

FAQ

What do the HSL numbers mean?

Hue is the position on the colour wheel (0 to 360°), saturation is how vivid it is, and lightness runs from black (0%) to white (100%).

Why might a round trip change a value slightly?

HSL values are rounded to whole numbers, so converting back can be off by one in a channel.