HSL to HSLA converter
Paste a HSL value, get HSLA instantly. Any other format works too.
Opacity chart: HEX alpha and HSLA
In 8-digit HEX the last two digits set opacity: FF is fully opaque, 80 is about 50%, 00 is fully transparent. The table shows the example color at every 5% step.
| Opacity | HEX alpha | HEX | HSLA |
|---|---|---|---|
| 100% | ff | #ff5733 | hsla(10.59, 100%, 60%, 1) |
| 95% | f2 | #ff5733f2 | hsla(10.59, 100%, 60%, 0.95) |
| 90% | e6 | #ff5733e6 | hsla(10.59, 100%, 60%, 0.9) |
| 85% | d9 | #ff5733d9 | hsla(10.59, 100%, 60%, 0.85) |
| 80% | cc | #ff5733cc | hsla(10.59, 100%, 60%, 0.8) |
| 75% | bf | #ff5733bf | hsla(10.59, 100%, 60%, 0.75) |
| 70% | b3 | #ff5733b3 | hsla(10.59, 100%, 60%, 0.7) |
| 65% | a6 | #ff5733a6 | hsla(10.59, 100%, 60%, 0.65) |
| 60% | 99 | #ff573399 | hsla(10.59, 100%, 60%, 0.6) |
| 55% | 8c | #ff57338c | hsla(10.59, 100%, 60%, 0.55) |
| 50% | 80 | #ff573380 | hsla(10.59, 100%, 60%, 0.5) |
| 45% | 73 | #ff573373 | hsla(10.59, 100%, 60%, 0.45) |
| 40% | 66 | #ff573366 | hsla(10.59, 100%, 60%, 0.4) |
| 35% | 59 | #ff573359 | hsla(10.59, 100%, 60%, 0.35) |
| 30% | 4d | #ff57334d | hsla(10.59, 100%, 60%, 0.3) |
| 25% | 40 | #ff573340 | hsla(10.59, 100%, 60%, 0.25) |
| 20% | 33 | #ff573333 | hsla(10.59, 100%, 60%, 0.2) |
| 15% | 26 | #ff573326 | hsla(10.59, 100%, 60%, 0.15) |
| 10% | 1a | #ff57331a | hsla(10.59, 100%, 60%, 0.1) |
| 5% | 0d | #ff57330d | hsla(10.59, 100%, 60%, 0.05) |
| 0% | 00 | #ff573300 | hsla(10.59, 100%, 60%, 0) |
HSL to HSLA examples
About HSL and HSLA
HSL describes hue in degrees, saturation and lightness in percent. It is easy to read, but its lightness is not perceptually even: yellow at 50% looks much lighter than blue at 50%.
HSLA is HSL plus an alpha channel for opacity, written as hsla(11, 100%, 60%, 0.5). Alpha goes from 0 (fully transparent) to 1 (fully opaque), and modern CSS also accepts it inside hsl().
How the conversion works
We read the HSL value, convert it to CIE XYZ with the matrices from the CSS Color 4 specification and then into HSLA. Values outside the target gamut are mapped by the CSS Color 4 algorithm, which keeps lightness and hue and reduces chroma.
Questions and answers
How do I convert HSL to HSLA?
Paste or type a HSL value into the field above. PickShade converts it with the CSS Color 4 formulas as you type, and one click copies the HSLA value.
Is the HSL to HSLA conversion exact?
The math is exact and the result is rounded only for display, with enough digits to convert back to the same color. If the color does not fit the target gamut, PickShade warns you and shows the nearest color that fits.
Can I get other formats at the same time?
Yes. Every other format, including OKLCH, Display P3, Tailwind, SwiftUI, Flutter and Android, is listed below the result and copies with one click.
Is this converter free?
Yes. It is free, needs no sign-up and runs entirely in your browser.