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
| Color | RGB | HSL |
|---|---|---|
| red | rgb(255, 0, 0) | hsl(0, 100%, 50%) |
| orange | rgb(255, 165, 0) | hsl(39, 100%, 50%) |
| gold | rgb(255, 215, 0) | hsl(51, 100%, 50%) |
| lime | rgb(0, 255, 0) | hsl(120, 100%, 50%) |
| teal | rgb(0, 128, 128) | hsl(180, 100%, 25%) |
| navy | rgb(0, 0, 128) | hsl(240, 100%, 25%) |
| indigo | rgb(75, 0, 130) | hsl(275, 100%, 25%) |
| purple | rgb(128, 0, 128) | hsl(300, 100%, 25%) |
| hotpink | rgb(255, 105, 180) | hsl(330, 100%, 71%) |
| coral | rgb(255, 127, 80) | hsl(16, 100%, 66%) |
| chocolate | rgb(210, 105, 30) | hsl(25, 75%, 47%) |
| gray | rgb(128, 128, 128) | hsl(0, 0%, 50%) |
| silver | rgb(192, 192, 192) | hsl(0, 0%, 75%) |
| black | rgb(0, 0, 0) | hsl(0, 0%, 0%) |
How to use it
Three quick steps.
- Type or paste a RGB value.
- Read the HSL result instantly.
- 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.