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 Indigo | rgba(99, 102, 241, 1) | #6366f1 | Details |
| Vivid Red | rgba(239, 68, 68, 1) | #ef4444 | Details |
| Orange | rgba(249, 115, 22, 1) | #f97316 | Details |
| Light Yellow | rgba(234, 179, 8, 1) | #eab308 | Details |
| Vivid Green | rgba(34, 197, 94, 1) | #22c55e | Details |
| Teal | rgba(20, 184, 166, 1) | #14b8a6 | Details |
| Sky Blue | rgba(14, 165, 233, 1) | #0ea5e9 | Details |
| Blue | rgba(59, 130, 246, 1) | #3b82f6 | Details |
| Vivid Violet | rgba(139, 92, 246, 1) | #8b5cf6 | Details |
| Vivid Pink | rgba(236, 72, 153, 1) | #ec4899 | Details |
| Medium Gray | rgba(120, 113, 108, 1) | #78716c | Details |
| Black | rgba(0, 0, 0, 1) | #000000 | Details |
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.