Hex to RGBA
Enter a hex color code and opacity to convert to RGBA values. See a live color preview and generate random colors.
Hex Color
Opacity
100%
Enter a hex code like
#FF5733, adjust opacity with the slider
RGBA Value
Result will appear here
Preview
Hex to RGBA Converter
This tool converts hexadecimal color codes with an opacity percentage into their RGBA (Red, Green, Blue, Alpha) equivalents. RGBA extends RGB by adding an alpha channel that controls transparency, where 0% is fully transparent and 100% is fully opaque.
The conversion runs entirely in your browser. The alpha value in RGBA ranges from 0 (transparent) to 1 (opaque).
How to use
- Enter a hex color code in the input field (e.g.
#FF5733orFF5733). - Set the opacity percentage (0–100%).
- Click Convert to see the RGBA values and color preview.
- Click Random to generate a random color.
- Use Copy to copy the RGBA value to your clipboard.
What is RGBA?
RGBA is a color model that adds an alpha (transparency) channel to the standard RGB model. The alpha value ranges from 0 (fully transparent) to 1 (fully opaque). For example, rgba(255, 87, 51, 0.5) is the same orange-red color at 50% opacity.
Example
Hex: #FF5733, Opacity: 100% RGBA: rgba(255, 87, 51, 1) Hex: #00FF00, Opacity: 50% RGBA: rgba(0, 255, 0, 0.5) Hex: #3366CC, Opacity: 75% RGBA: rgba(51, 102, 204, 0.75)