RGB to HSL Converter
Convert RGB values to HSL, plus hex, HSV and CMYK, with a live swatch.
Processing: This tool runs entirely in your browser. Your input and any file you open stay on your device — nothing is uploaded to a server.
How to use the rgb to hsl converter
- Enter or pick your colour.
- Read every notation below, updated as you type.
- Copy whichever one you need.
About this tool
Hue is an angle on the colour wheel: 0° red, 120° green, 240° blue. Saturation is how much colour there is, and lightness runs from black at 0% through the pure hue at 50% to white at 100%. That is what makes HSL worth using — to make a shade darker you change one number, where in hex you would be guessing at three.
The conversion is exact in one direction and lossy in the other only because of rounding: HSL is normally written with whole-number percentages, which can shift a channel by a point or two on the way back. If you need an exact value, keep the hex.
Both notations describe the same sRGB colour — HSL is not a different colour space, just a more human way of addressing the same one.
Common uses
- Making a colour lighter or darker by one number instead of three.
- Building a palette of tints from one brand hue.
- Reading a colour from a design tool into CSS.
Frequently asked questions
- Is HSL better than RGB or hex?
- Not better, just easier to reason about. Adjusting lightness or saturation is one number in HSL, where in hex you would be adjusting three at once.
- Why does converting back give a slightly different RGB?
- HSL is normally written with whole-number percentages. Rounding those can move a channel by up to about 2 out of 255, which is invisible but not identical.
- Do browsers support hsl() directly?
- Yes, everywhere. You can write hsl() in CSS without converting to hex at all.
Related tools
HSL to RGB Converter
Convert HSL values to RGB and hex, with HSV and CMYK alongside.
HEX to RGB Converter
Convert colours between HEX, RGB and HSL with a live preview and copyable CSS values.
HEX to HSL Converter
Convert a hex colour to HSL, plus RGB, HSV and CMYK.
Color Picker
Pick a colour and read it back as hex, RGB, HSL, HSV, CMYK and the nearest CSS name.