← All free tools Misc tools

HSLA to HEXA

Convert your HSLA color format to HEXA format.

Accepts any format: #a8d08d, rgb(168 208 141), hsl(96, 42%, 68%), hsv(96, 32%, 82%) or a color name.

About this tool

Type or paste an HSLA color, or choose one with the picker, and the converter shows it as HEXA 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 HEXA

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 HEXA code, turn each channel into two base-16 digits, then add alpha × 255 the same way: 168, 208 and 141 are a8, d0 and 8d, and 0.8 × 255 = 204 is cc, which makes #a8d08dcc.

HSLA to HEXA examples

ColorHSLAHEXA
Sage green hsla(96, 42%, 68%, 0.8) #a8d08dcc
Red hsla(0, 100%, 50%, 0.8) #ff0000cc
Tomato hsla(9, 100%, 64%, 0.8) #ff6347cc
Gold hsla(51, 100%, 50%, 0.8) #ffd700cc
Dodger blue hsla(210, 100%, 56%, 0.8) #1e90ffcc
Indigo hsla(275, 100%, 25%, 0.8) #4b0082cc
Black hsla(0, 0%, 0%, 0.8) #000000cc
White hsla(0, 0%, 100%, 0.8) #ffffffcc

What is HSLA?

HSLA is HSL with alpha, the opacity, added as a number from 0 (invisible) to 1 (solid).

What is HEXA?

HEXA adds a fourth pair of digits to a HEX code for alpha, the opacity: ff is solid, 80 about half see-through and 00 invisible. All current browsers accept eight-digit codes in CSS.

Have a project in mind?

Have a brand or a product to grow?