HSLA to HEX
Convert your HSLA color format to HEX format.
About this tool
Type or paste an HSLA color, or choose one with the picker, and the converter shows it as HEX as you type, with a preview and every other format underneath, each with its own copy button. It reads colors written in any of the formats, and color names like “tomato”, too.
How to convert HSLA to HEX
To turn HSLA into red, green and blue, the hue picks a point on the color wheel, the saturation sets how far the color is from gray, and the lightness moves it between black and white. The alpha carries over as it is. To write a HEX code, turn each channel into two base-16 digits and put them after a #: 168 is a8, 208 is d0 and 141 is 8d, which makes #a8d08d.
HEX has no alpha, so the opacity is dropped and the color comes out fully solid.
HSLA to HEX examples
| Color | HSLA | HEX |
|---|---|---|
| Sage green | hsla(96, 42%, 68%, 0.8) |
#a8d08d |
| Red | hsla(0, 100%, 50%, 0.8) |
#ff0000 |
| Tomato | hsla(9, 100%, 64%, 0.8) |
#ff6347 |
| Gold | hsla(51, 100%, 50%, 0.8) |
#ffd700 |
| Dodger blue | hsla(210, 100%, 56%, 0.8) |
#1e90ff |
| Indigo | hsla(275, 100%, 25%, 0.8) |
#4b0082 |
| Black | hsla(0, 0%, 0%, 0.8) |
#000000 |
| White | hsla(0, 0%, 100%, 0.8) |
#ffffff |
What is HSLA?
HSLA is HSL with alpha, the opacity, added as a number from 0 (invisible) to 1 (solid).
What is HEX?
A HEX code is the most common way to write a color for the web and in design apps: a # followed by three pairs of base-16 digits, from 00 to ff, for red, green and blue. A three-digit code like #fc0 is short for #ffcc00.