Convert HSL to sRGB Hex

Decode legacy comma-separated or modern CSS4 hsl() / hsla() values into exact 6- or 8-digit #Hex codes.

0 bytes sent
  • 100% browser-local
  • Zero server transfers
  • CSS Color 4 precision

or drop a color string, CSS/JSON snippet, or file here · Ctrl V to paste · Paste Hex, RGB, HSL, OKLCH or use Screen Eyedropper

Instant Before & After Specimen

Instant HEX + RGB Readout
Input Samplecobalt.hsl
hsl(221, 83%, 53%)
Expected OutputHEX
#2463EB

HSL vs HEX

Source vs. target format specification comparison
PropertySource: HSLTarget: HEX
Gamut scopesRGB (Standard Web)sRGB (Standard Web)
Perceptual uniformityNoNo
Alpha channel supportYesYes
Human readabilityHighMedium
Extension / Token.css.css / .txt
Best forLegacy CSS theme variables and simple single-hue mental tweaks in sRGBCompact copy-paste handoff in sRGB brand guidelines and legacy CSS

How to use HSL to Hex

HSL to Hex — cleanly inside your local browser with zero server transfers.

  1. Enter or pick a colorType Hex, RGB, HSL, OKLCH, or Lab — or click Screen Eyedropper and live sliders.
  2. Inspect math & gamutReview exact CSS Color 4 readouts, sRGB vs Display P3 status, and profile options.
  3. Copy, chain, or exportCopy ready CSS/JSON snippets, download binary swatch files, or pipe directly to related Colr tools.

Frequently asked questions

Does it parse turn/rad units alongside degrees?

Yes — deg, turn, rad, and unitless hue angles all normalize cleanly onto [0, 360).

Can I convert converted Hex further into OKLCH?

Click Swap or jump straight to HSL → OKLCH via the studio bar.