TXT · Text & Data tools

RGB to HSL Converter

Active color#000000

rgb(0, 0, 0)

RGB Input
HSL Output
1Active Line0Valid Items
Go To Full Color Converter

Convert standard RGB color definitions into the Hue, Saturation, and Lightness (HSL) format. This tool translates light channel intensities into coordinates that are easier to manipulate for design states and theme scales.

Input formats

Provide colors using the standard rgb(r, g, b) syntax with channel values ranging from 0 to 255.

HSL percentage output

The output is formatted as hsl(h, s%, l%). Hue is expressed in degrees from 0 to 360, representing the position on the color wheel. Saturation and lightness are both percentages from 0% to 100%. Because these values are rounded to integers, converting back to RGB may result in minor rounding differences.

Batch processing

Process multiple RGB values simultaneously by pasting them into the input pane, one per line. The tool instantly generates a corresponding list of HSL output strings.

Visual adjustments

Use the active color picker to visually preview and tweak the currently selected line. Adjusting the picker automatically recalculates the RGB input and updates the HSL output in real time.

Frequently Asked Questions

CSS rgb() strings like rgb(34, 211, 238), with channels from 0 to 255. Paste one color per line for batch conversion.

CSS hsl(h, s%, l%), where hue is in degrees (0–360) and saturation and lightness are percentages (0–100%). Example: hsl(188, 86%, 53%).

Hue is rounded to whole degrees and saturation and lightness to whole percentages. Converting back to RGB can therefore shift a channel by one, which is normal.

When red, green, and blue are equal the color has no hue, so saturation reads 0% and the hue value has no visual effect.

No.

Try one of our format-specific converters below

Full Color Converter tool

Explore Our Tools

Browse all tools