← All free tools Misc tools

RGBA to HEXA

Convert your RGBA 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 RGBA 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 RGBA to HEXA

RGBA already gives the red, green and blue channels, from 0 to 255, and alpha from 0 to 1. 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.

RGBA to HEXA examples

ColorRGBAHEXA
Sage green rgba(168, 208, 141, 0.8) #a8d08dcc
Red rgba(255, 0, 0, 0.8) #ff0000cc
Tomato rgba(255, 99, 71, 0.8) #ff6347cc
Gold rgba(255, 215, 0, 0.8) #ffd700cc
Dodger blue rgba(30, 144, 255, 0.8) #1e90ffcc
Indigo rgba(75, 0, 130, 0.8) #4b0082cc
Black rgba(0, 0, 0, 0.8) #000000cc
White rgba(255, 255, 255, 0.8) #ffffffcc

What is RGBA?

RGBA adds alpha, the opacity, to RGB as a number from 0 (invisible) to 1 (solid). In current CSS, rgb() takes an alpha too, but rgba() still works everywhere and is the more familiar of the two.

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?