Matching Sox ConverterPART OF MATCHING SOX TOOLS
100% free tools
COLOR · CONVERT ON YOUR DEVICE

HEX to HSL color converter

Translate hex codes into hue, saturation, and lightness for intuitive palette tweaks.

Free forever. No signup. No watermark. Files never leave your device.

♧   Files stay on your device

About HEX to HSL conversion

Hex codes are compact but opaque: it is hard to look at #1c6b40 and know how to make it 10 percent lighter. HSL describes the same color as a hue angle on the color wheel (0–360°), a saturation percentage, and a lightness percentage. That makes it the friendlier format for building design systems, theming with CSS custom properties, and creating consistent variations of a brand color.

Enter a three- or six-digit hex code and the converter shows the hsl() value immediately, alongside RGB and a live swatch. Hue, saturation, and lightness are rounded to whole numbers, which is how most people write them in CSS. Because of that rounding, converting the HSL back can land one step away from the original hex. For pixel-exact brand work, keep the hex as your source of truth.

Once you see a color in HSL, small adjustments become predictable: nudge lightness for hover and pressed states, drop saturation for disabled controls, or rotate hue for complementary accents. The built-in tints and shades give you a ready-made ramp to start from.

How to do it

  1. Click the button above to open the Color tool.
  2. Enter your hex value in the HEX field, or choose a color with the picker.
  3. Read the HSL row, such as hsl(147, 59%, 26%).
  4. Copy the HSL value into your stylesheet or design tokens.
  5. Use the tint and shade swatches to explore lighter and darker steps.

HEX to HSL FAQ

Why might HSL back to hex differ by one digit?

HSL values are rounded to whole numbers, so a round trip can shift a channel by one.

What do the three HSL numbers mean?

Hue is the angle on the color wheel, saturation is color intensity, and lightness runs from black (0%) to white (100%).

Is HSLA with alpha shown?

No. The converter shows opaque HSL; add an alpha value yourself if needed.

Can I enter HSL to get hex?

No. Input is via hex code or the color picker.

THE MATCHING SOX FAMILY

One helpful wolf. More free tools.

Same simple promise in every tool: no required account, minimal data, and local processing whenever practical.

Yard Socket™ keeps your favorite yard accessories right where you want them. Anchor once. Swap forever.

Matching Sox Converter — Less fuss. More finished.
A project by Yard Socket LLC