HEX to RGBA Converter

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

Gamut: srgb

Common HEX → RGBA values

Vivid Indigo#6366f1rgba(99, 102, 241, 1)Details
Vivid Red#ef4444rgba(239, 68, 68, 1)Details
Orange#f97316rgba(249, 115, 22, 1)Details
Light Yellow#eab308rgba(234, 179, 8, 1)Details
Vivid Green#22c55ergba(34, 197, 94, 1)Details
Teal#14b8a6rgba(20, 184, 166, 1)Details
Sky Blue#0ea5e9rgba(14, 165, 233, 1)Details
Blue#3b82f6rgba(59, 130, 246, 1)Details
Vivid Violet#8b5cf6rgba(139, 92, 246, 1)Details
Vivid Pink#ec4899rgba(236, 72, 153, 1)Details
Medium Gray#78716crgba(120, 113, 108, 1)Details
Black#000000rgba(0, 0, 0, 1)Details

Adding transparency to a HEX color

Six-digit HEX has no transparency. To make it translucent, convert it to rgba() and choose an alpha, or append an alpha pair to make an eight-digit HEX: #6366f1 at 50% becomes #6366f180.

Common alpha pairs

100% = ff, 90% = e6, 80% = cc, 75% = bf, 50% = 80, 25% = 40, 10% = 1a, 0% = 00.

A modern alternative

For hover tints and overlays, color-mix(in oklch, #6366f1 20%, transparent) does the same job without converting at all, and you can try it in the CSS color playground.

Frequently asked questions

How do I convert HEX to RGBA?
Read the three HEX pairs as RGB, then add an alpha channel: #6366f1 at 80% opacity is rgba(99, 102, 241, 0.8). An eight-digit HEX already carries alpha in its last pair: #6366f1cc means alpha cc = 204 / 255 = 0.8.
What is the alpha value in RGBA?
Alpha is opacity from 0 (fully transparent) to 1 (fully opaque). rgba(0, 0, 0, 0.5) is 50% black, a common overlay color.
Is rgba() still valid CSS?
Yes. Modern CSS also accepts rgb(99 102 241 / 0.8), which means the same thing. rgba() remains supported everywhere and is often easier to read in older codebases.

Related tools