RGB to HSL converter.
Type an RGB color and read it as hue, saturation and lightness at once, to one decimal, in modern or legacy CSS syntax.
RGB to HSL converter.
Need the UI around it? With Pro, your AI agent builds the form, the result card and the rest of the page from a prompt.
Get ProHow it works
3 steps, no account. It runs in your browser and nothing is uploaded.
Type the RGB
As rgb(), rgba() or three numbers.
Read the HSL
Hue, saturation and lightness appear under it.
Copy it
In modern or legacy syntax, with every other notation below.
Related tools
More color tools. Every one free, in the browser.
Pricing
Build it with Pro
The tool is free. Pro adds 6,000+ blocks, premium templates and the MCP server, so your AI editor builds the product around it.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
Questions and answers
Before you trust the result: what to know about the format, the limits, your data and the tools next to it.
Scale R, G and B to 0 to 1. Lightness is the average of the largest and smallest; saturation is their difference over min(L, 1 − L) × 2; hue comes from which channel is largest and how the other two compare, times 60 degrees. For rgb(59 130 246) that's hsl(217.2 91.2% 59.8%).
Hue and saturation are what people adjust when they think about color, which makes HSL easier to tweak by hand than RGB: lighten a button by raising L, mute it by lowering S.
When R, G and B are equal there's no hue, so it's written 0 with 0% saturation. CSS treats that hue as missing, and it doesn't change the color.
rgb() or rgba(), with commas or spaces, percentages, or the three numbers alone: 59 130 246.
To one decimal, so converting back gives the same RGB. Legacy syntax writes hsl() with commas and hsla() for alpha.
No. The conversion runs in your browser.
No. The RGB to HSL converter is free and opens without a sign-in, an account or an install.
Nothing. The RGB to HSL converter holds your input in the page's memory, so closing or reloading the tab clears it, and it saves nothing in this browser.
Closest to the RGB to HSL converter: HEX to HSL converter, RGB to HEX converter, HSL to HEX converter, Color converter. Each opens on its own page, free and in the browser.
The RGB to HSL converter is one of 17 in its group. The group's page, /tools/color, lists them all.
The tool is free. Its interface is built from shadcn.io's own components (Button, Input, Slider and the rest of the registry under /ui), which come in React, Vue, Svelte and Solid. Pro adds the blocks and templates for the product around it.
4.9 out of 5 from 150+ developers
Build the product around it
Every block, template and icon, installed by your AI agent in your theme. The tools stay free.
Get Pro



