File ConversionColor ConversionFree Tool
HEX to RGBA
Convert a HEX color code plus an alpha (opacity) value into a CSS rgba() string.
How to Use HEX to RGBA
- 1Enter a hex color and alpha value separated by a comma (e.g. #4F46E5, 0.5)
- 2Click Convert
- 3Copy the rgba() result
Frequently Asked Questions
The hex color and an alpha value separated by a comma, e.g. "#4F46E5, 0.5" — the alpha value ranges from 0 (fully transparent) to 1 (fully opaque). If you omit the alpha, it defaults to 1.
A ready-to-paste CSS rgba() value — useful for adding transparency to a color you already have as a hex code, since hex alone has no opacity component.
No — the conversion happens entirely in your browser.
Related Tools
HEX to RGB
Convert a HEX color code (#RRGGBB) to its exact RGB(r, g, b) equivalent using standard base-16 to base-10 conversion.
HEX to HSL
Convert a HEX color code to HSL (Hue, Saturation, Lightness) using the standard RGB-to-HSL formula.
HSL to HEX
Convert HSL (Hue, Saturation, Lightness) values to a HEX color code using the standard HSL-to-RGB formula.
RGBA to HEX
Convert RGBA values (including alpha) to an 8-digit HEX color code (#RRGGBBAA).