🔮

HEX ↔ HSL Color Converter

Convert HEX color codes to HSL values and back. Live preview updates as you type.

⇄
💡
Tip: This combines HEX→RGB→HSL conversion in one step for convenience.
💡 Definition

HEX & HSL

  • HEX is the most common way to write colors in CSS (#RRGGBB).
  • HSL (Hue, Saturation, Lightness) is a more human-readable alternative.
  • This tool converts directly between them without needing an intermediate RGB step.
📖 How to use

Step by Step

  • Enter a HEX code on the left
  • Or enter H, S, L values on the right
  • Both sides update instantly with live preview
  • Copy the CSS-ready value you need
🎯 Use cases

When to use

  • Quickly getting HSL from a brand's HEX color
  • Creating lighter/darker variants by adjusting L
  • Design system color documentation
  • CSS custom property value conversion

Frequently Asked Questions

Can I use HSL in CSS?â–¾
Yes. Modern CSS fully supports hsl() and hsla(). Example: color: hsl(257, 85%, 58%). All modern browsers support it.
How do I make a color lighter in HSL?â–¾
Increase the L (lightness) value. L=50% is the pure color, L=75% is lighter, L=25% is darker, L=100% is white, L=0% is black.