RGBA to HEXA
Convert your RGBA color format to HEXA format.
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
| Color | RGBA | HEXA |
|---|---|---|
| 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.