RGBA to Hex
Enter RGBA color values and convert them to a hex color code with opacity. See a live color preview and generate random colors.
0–255, Alpha: 0–100%RGBA to Hex Converter
This tool converts RGBA (Red, Green, Blue, Alpha) color values into a hexadecimal color code with an opacity percentage. It helps when you need to represent an RGBA color as a hex code for use in design tools or systems that only accept hex input.
The conversion runs entirely in your browser. Enter values from 0 to 255 for each RGB channel and 0 to 100% for alpha.
How to use
- Enter values from 0 to 255 for Red, Green, and Blue.
- Set the Alpha value from 0 to 100%.
- Click Convert to see the hex code, opacity, and color preview.
- Click Random to generate a random color.
- Use Copy to copy the hex value to your clipboard.
What is RGBA?
RGBA extends the RGB color model with an alpha channel for transparency. The alpha value ranges from 0 (fully transparent) to 1 (fully opaque). When converting to hex, the alpha is preserved as a separate opacity percentage since standard hex codes do not include transparency (8-digit hex codes with alpha are not universally supported).
Example
RGBA: rgba(255, 87, 51, 1) Hex: #FF5733, Opacity: 100% RGBA: rgba(0, 255, 0, 0.5) Hex: #00FF00, Opacity: 50% RGBA: rgba(51, 102, 204, 0.75) Hex: #3366CC, Opacity: 75%