Most colors reach you as a HEX code, and a HEX code tells you almost nothing. Someone hands you #2563EB and you know it is some kind of blue, but not how strong or bright it is, nor what to change if it needs to be softer. The code is a storage format, not a thinking format.

HSL is the thinking format: the same color described as three qualities you can picture separately, which makes it the easiest notation to adjust by eye. This guide explains the three numbers, how to work with them in the free Color Picker on Ovatly, and where HEX still wins: exactness.

Contents

  • Quick answer
  • The three numbers, one by one
  • Why HSL is easy to adjust by eye
  • How to adjust a color with the Color Picker, step by step
  • Worked example: reading one blue in HSL
  • When HEX is the better notation
  • Limitations and honest tradeoffs
  • Common mistakes
  • FAQs
  • Conclusion

Quick answer

HSL stands for hue, saturation and lightness: the family, the intensity, the brightness. Use HSL while you are shaping a color, because you can hold the hue steady and tune the other two numbers for lighter, darker, stronger or softer variants that stay in the family. Use HEX when you record, share or ship the color, because HEX is exact and compact. In the Color Picker, one color appears in HEX, RGB and HSL side by side, so you can design with one and copy the other.

The three numbers, one by one

Take the blue this site uses as its worked example: #2563EB. The Color Picker shows it as rgb(37, 99, 235) and as hsl(221, 83%, 53%). Read the HSL version part by part.

The hue, 221, is the family: it answers "what color is it?" before any question of strength or brightness. Every variant built by holding 221 steady is still this blue, never a teal or a violet.

The saturation, 83%, is the intensity. At 83% the blue is strong and vivid. Lower it and the same blue washes toward grey; raise it and the blue pushes toward its purest form.

The lightness, 53%, is the brightness. Lower it and the blue darkens toward navy; raise it and the blue pales toward a tint. Neither move touches the hue, so the family survives both.

Why HSL is easy to adjust by eye

Designing a small color family usually means answering questions like: same blue, but darker for text. Same blue, but softer for a background. Same blue, but stronger for the one element that has to stand out.

In HSL, each of those is a one-number move: darker is a lower lightness, softer a lower saturation, stronger a higher saturation. The hue stays where it was, so the results are guaranteed relatives of the original, not strangers.

In HEX, the same jobs mean editing digits and hoping. There is no digit for "darker": you either know the conversion maths or you guess, check, and guess again. HSL removes the guessing by naming the qualities directly.

How to adjust a color with the Color Picker, step by step

  1. Open the Color Picker and pick a color with the swatch, or type a HEX value such as #2563EB.
  2. Read the HSL values in the result panel, noting the hue first: that is the family you want to keep.
  3. Adjust the color with the swatch, watching the HSL reading as you go. Aim at saturation and lightness, and treat a drifting hue as a sign you have wandered into a different family.
  4. When a variant looks right, copy its HEX value with the Copy button. That HEX, not the rounded HSL, is the value to keep.
  5. Before using the color for text, check the contrast ratios against black and white, so its readability is a number and not a hope.

Worked example: reading one blue in HSL

Start with #2563EB, shown by the tool as hsl(221, 83%, 53%). Suppose the job is a paler version of this blue for a background panel, and a darker one for text.

For the background, the hue stays at 221, the saturation eases down a little, and the lightness rises: a lighter, quieter blue, still recognisably the same family, because the family number never moved.

For the text version, the hue stays at 221 and the lightness drops instead. The panel's contrast ratios tell you whether it has gone far enough: against white, the original sits at 5.17:1, which passes the WCAG AA minimum of 4.5:1 for normal text, while against black it reads 4.06:1, which does not. Darkening pushes the white ratio higher still as you adjust.

When both variants satisfy you, copy each one as HEX and record those codes. The HSL numbers did the designing; the HEX codes do the keeping.

When HEX is the better notation

HEX wins wherever the value must be exact, portable or permanent. It is the compact code CSS expects, and what a developer or a colleague needs in a handoff, because it names one precise color with no rounding involved.

There is also an accuracy argument. In this tool, HSL values are rounded to whole numbers, so converting an HSL reading back into a color can differ by one unit in a channel. One unit is invisible in almost every case, but a stored brand color should not carry any drift at all. HEX and RGB are always exact, so the archive copy should be one of those two.

The working rule is short: design in HSL, record in HEX.

Limitations and honest tradeoffs

The HSL panel in this tool is a reading, not a separate storage format, and its whole-number rounding is the price of readability. Type an HSL value from here into another tool by hand, and the color you get can sit one channel unit away from the original. Copy the HEX when the exact shade matters.

The contrast ratios on this page compare your color with pure black and pure white only. For a colored background, the Color Contrast Checker is the right tool, since a ratio against white says nothing about a ratio against, say, a pale yellow.

Finally, the swatch is your operating system's picker, so it may offer extra formats this page does not display. The notations guaranteed here are HEX, RGB and HSL.

Common mistakes

  • Storing the HSL reading as the official color. It is rounded. Store the HEX or RGB, which are exact.
  • Changing all three numbers at once. If the hue moves, you have designed a different color, not a variant. Hold the hue, tune the rest.
  • Judging a variant by the swatch alone. Check the contrast ratios before a variant becomes text, especially a lightened one.
  • Typing a color name or an rgb() string where a HEX belongs. HEX colors are 3 or 6 characters of 0-9 and A-F, optionally starting with #. Anything else reads as invalid here.

FAQs

What do the three numbers in HSL mean? The first is the hue, the color family, given as a position around the color wheel. The second is saturation, how intense the color is, as a percentage. The third is lightness, how bright it is, also as a percentage. In hsl(221, 83%, 53%), the hue is 221, the saturation is 83% and the lightness is 53%.

Why is HSL easier to adjust than HEX? Because each number controls one quality you can picture. Keep the hue the same and raise or lower saturation and lightness, and the color gets stronger, softer, darker or lighter while staying in the same family. A HEX code gives you no such handles: changing it means changing digits whose effect you cannot predict by eye.

Is HSL as exact as HEX? Not in this tool. HSL values are rounded to whole numbers, so converting an HSL value back can differ by one unit in a channel. HEX and RGB are always exact, which is why the final value of a color should be stored as HEX or RGB.

When should I use HEX instead of HSL? Use HEX when the value has to be stored, shared or matched exactly: in CSS, in a design handoff, in a brand document. HEX is a compact code made for that job. Use HSL while you are still deciding what the color should be, then convert the winner to HEX and record that.

Can the Color Picker sample a color from a photo? No. Picking a color out of an image is the Image Color Picker tool's job: upload the image there and click any point to read its color. The Color Picker starts once you already have a color, and shows it as HEX, RGB and HSL.

Conclusion

HSL and HEX are not rivals; they are two stages of the same job. HSL is how you think about a color and adjust it by eye. HEX is how you freeze the result so it survives storage, handoff and CSS exactly. The Color Picker keeps both on one screen so you never have to choose between them. When the color in front of you came out of a logo file rather than a swatch, our companion guide on copying exact brand colors from a logo file covers that workflow end to end. For more guides in this series, see the Color and Design Tools guides.