Preview
Converted Values
100% Private
All color conversion runs locally in your browser. Nothing is uploaded.
HSL Color Converter changes HSL to HEX and RGB and back instantly online for free. Adjust hue, saturation, lightness with live preview in your browser.
Written & reviewed by Helperzy Editorial Team · Updated July 2026
Preview
Converted Values
100% Private
All color conversion runs locally in your browser. Nothing is uploaded.
Adjust hue, saturation, and lightness with the sliders or by typing, or paste a hex code to read its HSL. Hue is an angle from 0 to 360 degrees, while saturation and lightness are percentages from 0 to 100.
The HEX and RGB equivalents and a live preview update instantly as you change any value. Because all formats stay in sync, you can design in the intuitive HSL model and still read the code your tools expect.
Copy the HSL, HEX, or RGB value into your CSS or design tool. To build a matching tint or shade, change only the lightness and copy the new code for each step in your palette.
An HSL colour converter lets you describe a colour by hue, saturation, and lightness, then hands you the matching HEX and RGB codes with a live swatch. You set the three values, or paste a hex code to read its HSL, and every format updates together. The appeal of HSL is that it matches how people actually think about colour: hue picks the base tone, saturation sets how vivid it is, and lightness sets how light or dark it appears. That makes it the go-to model for building tints and shades, tuning a palette, or explaining a colour to someone, while HEX and RGB remain the forms most stylesheets and graphics tools expect. The converter bridges the two worlds so you can design in HSL and deliver in whatever notation the project needs. The conversion follows the standard HSL-to-RGB algorithm. Hue is an angle from 0 to 360 degrees around a colour wheel, where 0 and 360 are red, 120 is green, and 240 is blue. Saturation and lightness are percentages. The maths first works out a chroma value from saturation and lightness, then places that chroma at the right point on the wheel using the hue angle, and finally shifts everything up so the lightness is correct. The three resulting channels, each 0 to 255, are the RGB values, and each is then written as two hexadecimal digits to form the hex code. Reversing the process, RGB to HSL, finds the largest and smallest channels to derive lightness, then saturation, then the hue angle from which channel is highest. A worked example makes it tangible. Start with hsl(204, 70%, 53%). The hue of 204 degrees sits in the cyan-blue region, 70 percent saturation makes it fairly vivid, and 53 percent lightness keeps it mid-toned. Run the conversion and it becomes rgb(52, 152, 219), which written in hex is #3498db. Now suppose you want a lighter tint of the same colour: keep hue at 204 and saturation at 70, but raise lightness to 75 percent. The result shifts to a soft sky blue, rgb(147, 200, 236) or #93c8ec, while clearly belonging to the same family. Drop lightness to 35 percent instead and you land on rgb(27, 102, 152), or #1b6698, a deep navy-leaning blue. The converter shows all three formats for each setting the instant you change a slider. The real-world jobs are practical. A designer defines a brand blue in HSL, then generates a five-step scale for backgrounds and borders by changing only lightness, keeping the family coherent. A developer receives an HSL value from a design tool and needs the hex to store in a CSS variable. Someone fixing a washed-out button raises saturation and watches the swatch firm up, then copies the new hex. A person theming a chart rotates the hue in even steps to create distinct but related series colours. Two more that come up often: an accessibility reviewer lowers lightness on a link colour in small increments until the contrast ratio against white clears 4.5:1, and a print designer converting a logo drops saturation to 0 to get the exact grey a mono version needs, since hsl(0, 0%, 50%) always resolves to #808080 no matter what hue was there before. In each case, editing in HSL is far more intuitive than nudging raw hex digits. A few pointers help. Because lightness runs 0 to 100 percent, setting it to 0 always gives black and 100 always gives white regardless of hue, so a colour that has gone black or white usually means lightness is at an extreme. Saturation at 0 produces a grey, again ignoring hue. Modern CSS supports the hsl() function directly, so you can often use HSL as-is, but the converter still provides HEX and RGB for older tools and design software. Everything runs locally in your browser with exact colour maths, so the output matches your input precisely, the tool works offline once loaded, and no colour you enter is uploaded, logged, or stored.
Hue = 0–360° (0=red, 120=green, 240=blue); Saturation and Lightness = 0–100%. HSL → RGB: chroma C = (1 − |2L − 1|) × S; place C by hue, then add lightness offset; scale channels to 0–255. RGB → HEX: each channel written as two hex digits. Example: hsl(204, 70%, 53%) → rgb(52, 152, 219) → #3498db
Input
hsl(204, 70%, 53%)
Result
rgb(52, 152, 219) · #3498db
A vivid mid blue; the hue angle sets the tone, S and L set vividness and brightness.
Input
Same hue, lightness raised to 75%
Result
rgb(147, 200, 236) · #93c8ec
Keeping H 204 and S 70% but increasing L to 75% produces a soft sky-blue tint of the same colour.
Input
Same hue, lightness lowered to 35%
Result
rgb(27, 102, 152) · #1b6698
Dropping L to 35% deepens the same blue into a shade suitable for hover or active states.
Set the hue, saturation, and lightness values in the Helperzy HSL Color Converter, using the sliders or by typing, and the matching HEX code appears instantly along with a live preview and the RGB equivalent.
HEX to RGB Converter changes hex color codes to RGB and RGBA values instantly online for free. Live preview and copy-ready CSS in your browser.
Color Picker lets you pick any color and get HEX, RGB, and HSL values instantly online for free. Live preview and copy-ready codes in your browser.
Color Contrast Checker tests text and background colors against WCAG accessibility ratios online for free. Check AA and AAA compliance in your browser.
RGB to HEX Converter changes RGB color values to hex codes instantly online for free. Live preview and copy-ready CSS hex in your browser.
Image Resizer changes image dimensions online — set exact pixels, use percentage scaling, or pick from 12 presets (Instagram, Passport, YouTube, etc.). Target specific file sizes like 50KB or 100KB. Batch resize multiple images. 100% free, browser-based.
Image Converter changes images between any format online free — JPG, PNG, WebP, AVIF, PDF, ICO, BMP, HEIC, GIF, SVG. Batch conversion, resize, rotate, flip, AI format recommendation. 100% browser-based, no upload.
Convert JPG to WebP format online free — reduce image file size by 25-35% with identical visual quality. Batch conversion, adjustable quality, lossless mode available. Boost website speed and Core Web Vitals scores. 100% browser-based, no upload needed.
Convert PNG to WebP format online free — reduce file size by 26-34% while preserving full transparency. Batch conversion, lossless and lossy modes, adjustable quality. Boost website performance and Core Web Vitals. 100% browser-based, no upload needed.