Skip to content
Jellykit

RGBA to HEX

Convert rgba() colours with transparency into an 8-digit HEX code (#RRGGBBAA) for CSS, Android and design tools. Free rgba to hex converter, instant results.

Runs in your browser. Nothing is uploaded.

About RGBA to HEX

CSS and most design tools accept an 8-digit hex code where the last two digits are the alpha (opacity). Enter RGB plus an alpha from 0 to 1 and get the #RRGGBBAA code.

Alpha 1 is fully opaque (ff) and 0 is fully transparent (00). An alpha of 0.5 becomes 80 in hex. Note that Android's XML colours put the alpha first (#AARRGGBB), so move the last two digits to the front there.

How to use RGBA to HEX

  1. Enter your values in the fields.
  2. The answer updates instantly as you type.
  3. Press Copy result to save the breakdown.

Frequently asked questions

Do all browsers support 8-digit hex?

Yes, every current browser does.

What's the hex for 50% opacity?

80. For example rgba(0, 0, 0, 0.5) is #00000080.

Is RGBA to HEX free and private?

Yes. RGBA to HEX is completely free with no sign-up. Everything runs in your browser, so whatever you type or paste never leaves your device.

See all design tools →