HEX to RGBA converter for transparent UIs — how do I add alpha to solid #hex colors for overlays and glass effects?

Start from opaque RGB, then set α in 0–1. CSS also allows #RRGGBBAA in modern browsers. Our HEX to RGBA page outputs rgba(r, g, b, a); 8-digit HEX is used when alpha < 1 on HEX output pages.

Detailed answer

Transparency does not change R, G, B—it scales how much background shows through. Paste #RRGGBB or use the Color Picker alpha slider, then copy rgba() into CSS or design specs.

Relationship context

RGBA extends sRGB with one extra channel; premultiplied formats are a separate topic for graphics pipelines.

Example sRGB codes (HEX · RGB · HSL)

HEXRGBHSL (rounded)
#3498DBrgb(52, 152, 219)hsl(204, 70%, 53%)
#E74C3Crgb(231, 76, 60)hsl(6, 78%, 57%)
#2ECC71rgb(46, 204, 113)hsl(145, 63%, 49%)
#FFFFFFrgb(255, 255, 255)hsl(0, 0%, 100%)

Illustrative sRGB examples; HSL matches integer rounding in the Color Picker UI.

More Color Picker tools

Open the main picker or a fixed input/output converter—same math as the hub, with copy-ready strings.