RGBA to HEX Converter

Paste an RGBA value and get the exact HEX equivalent instantly — plus every other color format, a gamut check and one-click copy.

Gamut: srgb

Common RGBA → HEX values

Vivid Indigorgba(99, 102, 241, 1)#6366f1Details
Vivid Redrgba(239, 68, 68, 1)#ef4444Details
Orangergba(249, 115, 22, 1)#f97316Details
Light Yellowrgba(234, 179, 8, 1)#eab308Details
Vivid Greenrgba(34, 197, 94, 1)#22c55eDetails
Tealrgba(20, 184, 166, 1)#14b8a6Details
Sky Bluergba(14, 165, 233, 1)#0ea5e9Details
Bluergba(59, 130, 246, 1)#3b82f6Details
Vivid Violetrgba(139, 92, 246, 1)#8b5cf6Details
Vivid Pinkrgba(236, 72, 153, 1)#ec4899Details
Medium Grayrgba(120, 113, 108, 1)#78716cDetails
Blackrgba(0, 0, 0, 1)#000000Details

The conversion

Each RGB channel becomes two hexadecimal digits: 99 = 63, 102 = 66, 241 = f1. Alpha is multiplied by 255 and rounded, so 0.8 becomes 204 = cc, giving #6366f1cc.

Rounding

Alpha in HEX has only 256 steps, so some decimals can't round-trip exactly: 0.33 becomes 54, which reads back as 0.329. That difference is invisible on screen.

Accepted input

Paste rgba(99, 102, 241, 0.8), rgb(99 102 241 / 80%) or any other CSS color.

Frequently asked questions

How do I convert RGBA to HEX?
Write R, G and B as two hex digits each, then multiply alpha by 255 and write that as a fourth pair. rgba(99, 102, 241, 0.8) becomes #6366f1cc. With alpha 1, the last pair is dropped and you get #6366f1.
Do browsers support 8-digit HEX?
Yes. #rrggbbaa and the short #rgba form work in every current browser. Some older design tools still ignore the alpha pair, so check before handing values over.
Can I convert RGBA to a solid HEX color?
Only by choosing a background. A translucent color has no single solid equivalent; blended over white it looks lighter than over black. Use the color mix tool to blend it with your actual background.

Related tools