Skip to content

Hex to HSL color converter online

Convert hex colors to HSL/HSLA for CSS. Supports short hex and alpha. Free color tool with live preview.Runs locally in your browser; files never leave your dev

100%
Output

Preview

HSL to Hex

Private · Fast · Free

HSL separates hue, saturation, and lightness — tweaking “a bit darker” is often easier than editing hex nibbles.

Eight-digit hex with alpha maps to hsla; opaque colors output hsl.

Minor differences vs. design apps can happen across color spaces — trust the preview swatch.

How to convert

  1. Enter hex
  2. Check HSL output and swatch
  3. Copy into CSS

What HSL is useful for

  • Build lighter/darker variants in CSS variables.
  • Align code with hex from design handoff.
  • Instant preview cuts trial and error.

Scenarios

  • Brand hex → hsl custom property
  • Button hover via lightness shift
  • Inspect alpha in an 8-digit hex

Tips

  • Hash `#` optional on input.
  • Short `#abc` expands to `#aabbcc`.
  • Copy hsl vs. hsla depending on alpha need.

Examples

Input Output Note
#FF5733 hsl(...) Opaque
#FF573380 hsla(...) Semi-transparent

Hex to HSL FAQ

Relation to RGB converter?
Site also has hex↔RGB. HSL is often nicer for perceptual light/dark tweaks.
Mismatch vs. Figma?
Rounding and gamut differ — judge on your target browser.

Related tools