Convert HSL Values to a HEX Code
Set a hue, a saturation and a lightness, and the matching HEX code and RGB numbers appear straight away, ready to copy into your favourite design app.
Enter HSL Values
HEX Result
#4A7C59
RGB: rgb(74, 124, 89) HSL: hsl(138, 25%, 39%)
Quick Start
Fill in three numbers: Hue between 0 and 360 degrees, Saturation between 0 and 100%, and Lightness between 0 and 100%. Prefer to be surprised? Tap Random Colour. Either way, the converter immediately shows the HEX code and RGB values that match your settings.
A Short Refresher on HSL
In HSL, the hue tells you where a colour sits around the wheel, the saturation tells you whether it is punchy or soft, and the lightness tells you whether it leans pale or deep. Designers meet it often in CSS and graphics software, and many people find it far easier to picture in their head than a set of RGB numbers or a HEX string.
Why You Might Need the HEX Version
Plenty of art apps, palette tools and print services only accept HEX or RGB. With this converter you can shape a colour the friendly way, choosing the hue first and then refining saturation and lightness in turn, and still walk away with a HEX code to paste anywhere. For example, I might settle on a teal hue for a calligraphy background, soften its saturation for an earthy feel, then copy the HEX into my print layout.
Examples
Things People Ask
What is meant by HSL?
It is short for Hue, Saturation and Lightness, a system that defines a colour by where it falls on the wheel, how strong it is and how pale or deep it appears.
What happens behind the scenes?
Your three HSL numbers are fed through a standard HSL-to-RGB formula, and the RGB result is then written out as a HEX code.
Which numbers are allowed for each field?
Hue runs from 0 to 360 degrees. Saturation and Lightness each run from 0 to 100%.
Why begin in HSL rather than HEX?
It lets you think in everyday terms. Choose the colour family, then decide how bold and how pale or dark it ought to be, which tends to feel much more natural than tweaking HEX characters.
Are the results precise?
They are. Converting HSL to HEX is exact maths, and the only rounding involved is the usual rounding for display.
How can I copy what I get?
Tap Copy HEX or Copy RGB and that value goes straight to your clipboard.
Do my colours get recorded?
No. Your browser does all the working, and nothing is stored or sent off to a server.
Is there a fee?
None. The HSL to HEX Colour Converter is free for everyone, and you do not need an account, a sign-up or any download.
Related Converters and Tools
HEX to HSL Colour Converter
Work the other way and find the HSL values of a HEX code.
HEX to RGB
Split a HEX code into its Red, Green and Blue amounts.
Colour Picker
Click to choose a colour and read its HEX, RGB, HSL and estimated CMYK.
Tints & Shades Generator
Create a graded run of paler and deeper tones from a base colour.
Love Playing With Colour?
Try it with brush in hand. Creative Flair by Sana painting kits bring you a thoughtfully balanced set of colours and supportive step-by-step directions, so even a first painting feels achievable.
Start With a KitResults from this converter are digital and shared to help you plan and learn. The look of a colour can change between screens, printers, paint brands, pigments, papers and lighting conditions, so trial any important colour before it goes into finished artwork or printed work.
