MewTools

ColorAdded

HEX to HSL Converter

Read a hex colour as hue, saturation and lightness. HSL is easier to reason about when you need a lighter tint or a desaturated variant.

Runs locallyNo uploadCSS readyFree, no account

Convert HEX to HSL

80 / 232

Result

Waiting

Run the tool and the result appears here. Copy it or download it — nothing leaves this tab.

Privacy

Local by design

Colour maths happens in this tab. Nothing is uploaded, and no copy is kept on a server.

How to use it

01

Type or paste a hex colour such as #0b57f0.

02

Read the HSL line, plus the RGB values and a swatch of the result.

03

Copy the hsl() value straight into your stylesheet.

When to use it

Tints and shades

Raise or lower the lightness while the hue stays fixed.

Accessible palettes

Adjust lightness to hit a contrast target instead of guessing hex codes.

Design handoff

Give a developer HSL values that map cleanly onto CSS variables.

Questions

Is HSL the same colour as HEX?

Yes. HSL is a different description of the same sRGB colour, so nothing shifts in value.

Why do I need RGB too?

Some older tooling and design specs still use rgb(); both forms are shown together.

Does it support alpha?

The converter reads opaque colours. Use rgba() or hsla() in CSS when you need transparency.

↑↓ to move↵ to openEsc to close