HSL vs HSV: What’s the Difference and Which Should You Use?

Featured graphic for “HSL vs HSV” showing color swatches and codes

You pick a blue in a design app and it says S: 83%, B: 76%. You paste the same blue into CSS as hsl() and suddenly the numbers are 70% and 45%. Nothing is wrong. You are looking at two different color models, HSV and HSL, that describe the same color in different ways.

This guide explains the difference between HSL and HSV in plain language, shows the same color in both models, gives you the conversion formula, and tells you which one to use for CSS, design apps and color pickers.

Quick answer

  • HSL = Hue, Saturation, Lightness. Used by CSS (hsl()). 50% lightness is the pure color; 100% is always white.
  • HSV = Hue, Saturation, Value (also called HSB, Brightness). Used by many design-app color pickers. 100% value is the brightest version of the color, which is the pure color when saturation is 100%.
  • Hue is the same in both. Saturation and the third value are calculated differently, so the numbers don’t match.

Use HSL when you write CSS. Use HSV/HSB when a design tool’s picker asks for it. Convert between them when you move a color from one to the other.

What is HSL?

HSL describes a color with three values:

  • Hue (0–360°): the position on the color wheel. 0° is red, 120° green, 240° blue.
  • Saturation (0–100%): how colorful it is. 0% is gray.
  • Lightness (0–100%): 0% is black, 100% is white, and 50% gives the most vivid version of the hue.

HSL is popular in CSS because lightness behaves intuitively: raise it to make a tint, lower it to make a shade. Our formats guide covers HSL alongside HEX and RGB in more detail.

What is HSV (HSB)?

HSV uses the same hue, then:

  • Saturation (0–100%): how much color there is compared with white mixed in.
  • Value or Brightness (0–100%): 0% is black; 100% is the brightest the color can be.

HSV and HSB are two names for the same model. HSV is common in programming libraries; HSB is the name many design apps use. The model matches the classic square color picker: brightness runs up and down, saturation runs left to right.

HSL vs HSV side by side

Lightness vs value

The biggest difference is what “100%” means at the top of the scale:

  • In HSL, lightness 100% is always white, whatever the hue or saturation.
  • In HSV, value 100% is the brightest version of the color. With saturation at 100%, that’s the pure, vivid color; it only becomes white when saturation is 0%.

So a pure red is hsl(0, 100%, 50%) but HSV 0°, 100%, 100%. Both describe #FF0000.

Why the saturation numbers differ

Both models measure saturation as the color’s “colorfulness” (its chroma) divided by the most colorfulness possible — but they divide by different things. HSV divides by the color’s value (brightness). HSL divides by how far the lightness is from the extremes of black and white. Because the reference is different, the same color can show 70% saturation in HSL and 83% in HSV.

Worked example: one color in both models

ColorHEXHSLHSV / HSB
Medium blue#2273C3210°, 70%, 45%210°, 83%, 76%
Pure red#FF00000°, 100%, 50%0°, 100%, 100%
Light red (pink)#FF80800°, 100%, 75%0°, 50%, 100%
Dark red#8000000°, 100%, 25%0°, 100%, 50%
Middle gray#8080800°, 0%, 50%0°, 0%, 50%
White#FFFFFF0°, 0%, 100%0°, 0%, 100%
Black#0000000°, 0%, 0%0°, 0%, 0%

Notice the pink row: HSL calls it fully saturated (100%) but lighter; HSV calls it half saturated (50%) at full brightness. Same color, different description.

Which apps use which model?

CSS

CSS supports hsl() directly, for example color: hsl(210, 70%, 45%);. There is no hsv() function in CSS. CSS does have hwb() (hue, whiteness, blackness), a newer model closely related to HSV, but most developers use hsl(), rgb() or hex.

Design apps and color pickers

Many design tools use HSB in their color pickers. Photoshop’s Color Picker, for example, shows H, S and B fields alongside RGB and hex. Other apps let you switch between several formats. Check the label next to the fields: if it says B or V, it is HSV; if it says L, it is HSL.

The practical rule: never copy the S and L/B numbers between models. Copy the hex code instead, or convert.

How to convert HSV to HSL

You don’t need to do this by hand often, but the math is short. With saturation and value written as decimals (0 to 1):

  1. Hue stays the same.
  2. Lightness: L = V × (1 − Sv ÷ 2)
  3. Saturation: if L is 0 or 1, Sl = 0. Otherwise Sl = (V − L) ÷ min(L, 1 − L)

Example: #2273C3 (HSV 210°, 82.6%, 76.5%)

  • L = 0.765 × (1 − 0.826 ÷ 2) = 0.765 × 0.587 = 0.449 → 45%
  • Sl = (0.765 − 0.449) ÷ min(0.449, 0.551) = 0.316 ÷ 0.449 = 0.70 → 70%
  • Result: hsl(210, 70%, 45%), which matches the table.

To go the other way (HSL to HSV): V = L + Sl × min(L, 1 − L), then Sv = 0 if V is 0, otherwise Sv = 2 × (1 − L ÷ V).

The easiest route in practice is to paste the hex code into a converter or color picker and read the format you need.

Which should you use?

TaskBetter modelWhy
Writing CSSHSLSupported natively with hsl()
Making tints and shades in codeHSLLightness up = tint, down = shade
Picking colors in a square pickerHSV/HSBMatches the picker’s layout
Keeping a color equally “bright” while changing saturationHSV/HSBValue stays fixed as saturation changes
Sharing a color with someone elseHexOne unambiguous value

Neither model is “better” overall. Both are simple transformations of RGB, and neither matches human perception perfectly. Two colors with the same HSL lightness can look very different in brightness (yellow looks much lighter than blue at 50%). That’s why accessibility checks use contrast ratios, not HSL or HSV numbers.

Common mistakes

  1. Copying HSB numbers into hsl(). The color changes. Fix: copy the hex code or convert first.
  2. Assuming 100% lightness means “bright color”. In HSL it means white. Fix: use 50% lightness for the most vivid color.
  3. Trying to write hsv() in CSS. It doesn’t exist. Fix: convert to hsl() or hex.
  4. Judging readability from lightness numbers. Fix: check text with a contrast checker.
  5. Mixing models in one design system. Fix: store colors as hex and document one model for adjustments.

FAQ

Is HSB the same as HSV?

Yes. HSB (hue, saturation, brightness) and HSV (hue, saturation, value) are two names for the same model.

Can I use HSV in CSS?

No, CSS has no hsv() function. Convert the color to hsl(), rgb() or hex.

Why are the saturation numbers different?

Because each model divides the color’s colorfulness by a different reference. The color is identical; only the description changes.

Is the hue the same in HSL and HSV?

Yes. Hue is calculated the same way in both, so it never changes when you convert.

Which is easier to learn?

For web work, HSL. It is part of CSS, and its lightness scale (black to color to white) is easy to predict.

Do HSL and HSV show the same set of colors?

Yes. Both describe the same RGB colors, just with different coordinates.

Summary

HSL and HSV share the same hue and cover the same colors, but they describe saturation and lightness differently. Use HSL in CSS, expect HSB in many design-app pickers, and move colors between them using hex or a converter rather than copying numbers.

For how HEX turns into RGB step by step, see our formula guide.

Scroll to Top