Omnibus
HEX#2a78d6
RGBrgb(42, 120, 214)
HSLhsl(213, 68%, 50%)
OKLCHoklch(0.575 0.163 255.5)
Hue213°
Saturation68%
Lightness50%
Alpha100%
On whiteFail
4.42:1
On blackAA
4.76:1

Shades & harmonies

Tints & shades

Complementary

Analogous

Triadic

Split-complementary

Tetradic

Pick from an image

RGB to HSL converter

Enter a RGB color in the field above and its HSL value updates instantly, alongside HEX, RGB, HSL and OKLCH — copy any of them with one click. RGB lists the red, green and blue channels from 0 to 255, matching how a screen mixes light — written as rgb(255 0 0) or the legacy rgb(255, 0, 0). HSL describes a color as hue (0–360°), saturation and lightness (both %), which makes it intuitive to nudge: spin the hue for a new color, lower the lightness for a darker one.

For example, rgb(255, 0, 0) in RGB is hsl(0, 100%, 50%) in HSL. Everything is computed in your browser with no upload, and you can drag the hue, saturation and lightness sliders — or use the eyedropper — to explore nearby colors.

Looking for something else? See all color tools.

Related color tools

RGB to HSL Converter — frequently asked questions

How do I convert RGB to HSL?
Type or paste your RGB value into the color field. The HSL equivalent appears immediately in the HSL row — click the copy icon to grab it. You can also use the color picker, the sliders, or the eyedropper.
Can I convert HSL back to RGB?
Yes — the tool always shows every format at once, so the RGB value is right there too. There's also a dedicated HSL to RGB page if you'd prefer to start from HSL.
Is anything uploaded to a server?
No. Every conversion runs in your browser with JavaScript — the color values never leave your device, and the tool keeps working offline once the page has loaded.
Is this really free?
Yes — no sign-up, no payment, no watermark. A single unobtrusive ad slot covers hosting.

All color tools

Spotted a bug or have a suggestion?

Found something broken, have an idea, or just want to say thanks about any of our tools? Every message reaches a real person.