hexcolors

Tools / RGB to HSL converter

RGB to HSL converter

Paste a RGB value and get the HSL result right away, plus every other format.

How RGB converts to HSL

Scale the channels to 0 to 1, find the largest and smallest, and derive hue, saturation and lightness from them. rgb(30, 144, 255) is about hsl(210, 100%, 56%).

Common colors in RGB and HSL

ColorRGBHSL
redrgb(255, 0, 0)hsl(0, 100%, 50%)
orangergb(255, 165, 0)hsl(39, 100%, 50%)
goldrgb(255, 215, 0)hsl(51, 100%, 50%)
limergb(0, 255, 0)hsl(120, 100%, 50%)
tealrgb(0, 128, 128)hsl(180, 100%, 25%)
navyrgb(0, 0, 128)hsl(240, 100%, 25%)
indigorgb(75, 0, 130)hsl(275, 100%, 25%)
purplergb(128, 0, 128)hsl(300, 100%, 25%)
hotpinkrgb(255, 105, 180)hsl(330, 100%, 71%)
coralrgb(255, 127, 80)hsl(16, 100%, 66%)
chocolatergb(210, 105, 30)hsl(25, 75%, 47%)
grayrgb(128, 128, 128)hsl(0, 0%, 50%)
silverrgb(192, 192, 192)hsl(0, 0%, 75%)
blackrgb(0, 0, 0)hsl(0, 0%, 0%)

How to use it

Three quick steps.

  1. Type or paste a RGB value.
  2. Read the HSL result instantly.
  3. Click any value to copy it.

Good to know

Get better results.

  • You can also paste a hex code, rgb(), hsl() or a color name. The tool understands them all.
  • Every other format is shown too, so one lookup covers all your needs.
  • Values are rounded to whole numbers where it makes sense.

Common questions

How do I convert RGB to HSL?

Scale the channels to 0 to 1, find the largest and smallest, and derive hue, saturation and lightness from them. rgb(30, 144, 255) is about hsl(210, 100%, 56%).

Is this RGB to HSL converter free?

Yes. It is free, private and runs in your browser, so your colors are never uploaded.

Can I convert from other formats too?

Yes. Enter a hex code, rgb(), hsl() or a CSS color name and you still get every format.

More tools

Keep going with a related tool.