Hex to HSL Colour Converter – Free, Instant

What this converter does

Web colours are usually written as hex codes like #FF5733, but hex codes are hard to read. The six digits hide three numbers, and changing one digit changes the colour in a way that is hard to predict. HSL is a friendlier way to describe the same colour: hue, the position on the colour wheel; saturation, how strong the colour is; and lightness, how bright or dark it is. This converter turns any hex code into its HSL values, with a swatch and three bars so you can see each number at once.

It also gives you the CSS form, hsl(11, 100%, 60%), ready to copy into a stylesheet. Once a colour is in HSL, making a lighter tint or a darker shade is easy: keep the hue and saturation, and move the lightness up or down.

How to use it

Type the hex code into the box, with or without the hash sign. Six digits work, and so do the short three-digit codes like #F53, which the tool expands to #FF5533. Press the button, or just keep typing, and the result appears: the HSL numbers in big text, the CSS line underneath, and three bars for hue, saturation, and lightness.

The meaning line tells you what the numbers say about the colour: a near-grey, a dark shade, a light tint, or a vivid mid-tone. The next step invites you to try the same hue with lightness at 80 percent, which is the quickest way to make a lighter version of the colour you just converted.

Worked example

Take #FF5733, a bright orange-red used on many websites. Type it in and the tool gives HSL 11, 100 percent, 60 percent. The hue is 11 degrees, just past red on the colour wheel. The saturation is 100 percent, so the colour is as strong as it can be. The lightness is 60 percent, a little above the middle, so it is a bright mid-tone.

Now try a grey: #808080. The tool gives HSL 0, 0 percent, 50 percent. The hue is 0 because a grey has no hue at all. The saturation is 0 percent, which is what makes it grey instead of a colour. The lightness is 50 percent, exactly in the middle, so it is a medium grey. Those three numbers explain the colour completely, in a way the hex code never could.

When it helps

It helps designers who work in CSS and want to build a colour scheme from one base colour. Pick the base colour, convert it, then make tints by raising the lightness and shades by lowering it, keeping the hue the same. The whole scheme stays in harmony because the hue never moves.

It helps developers who read someone else’s stylesheet and wonder what a hex code actually looks like. Paste the code, read the HSL numbers, and you know at once whether it is a dark blue, a pale green, or a vivid red. It helps students learning colour theory, because the three bars make hue, saturation, and lightness visible instead of abstract.

Honest limits

HSL is a way of describing a colour, not a different colour. Converting hex to HSL and back gives the same colour, apart from tiny rounding differences, because both describe the same red, green, and blue light. The tool rounds hue to whole degrees and saturation and lightness to whole percents, so a colour converted twice may shift by one unit.

HSL also has a quirk: the same lightness does not always look equally bright. A yellow at 50 percent lightness looks brighter than a blue at 50 percent lightness, because the eye is more sensitive to yellow. HSL is a practical tool for making tints and shades, not a perfect model of how the eye sees brightness.

Frequently asked questions

What does HSL stand for?
Hue, saturation, lightness. Hue is the position on the colour wheel from 0 to 360 degrees. Saturation is how strong the colour is, from grey at 0 percent to full colour at 100 percent. Lightness is how bright it is, from black at 0 percent to white at 100 percent.

How do I make a lighter shade of a colour?
Keep the hue and the saturation the same and raise the lightness. A colour at 60 percent lightness becomes a lighter tint at 80 percent, and a darker shade at 40 percent.

Can I use the HSL value in CSS?
Yes. Paste the line the tool gives you, for example hsl(11, 100%, 60%), straight into a stylesheet. Every modern browser understands it.

Why does my grey have a hue of 0?
A grey has no hue because its red, green, and blue values are equal. The tool reports 0 for the hue in that case, and the saturation of 0 percent is the number that tells you it is grey.

También disponible en español: Convertidor de Hex a HSL – Gratis, Instantáneo

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top