Adds the alpha channel a 6-digit HEX has no room for, which is what overlays and scrims are built from.
Similar Color Tools
What is Online HEX to RGBA Converter?
HEX to RGBA Converter is a free online tool for converting HEX color code to RGBA format. There are different color formats to define a color in CSS. Some are HEX (Hexadecimal Colors), RGB & RGBA, HSL & HSLA. There are also predefines color names like "red, green, lightblue..." etc. Also, you can use the keyword "currentColor".
Most used color formats are HEX and RGBA. HEX stands for hexadecimal colors while RGBA stands for "red, green, blue, alpha". HEX color code may have varying character length with a maximum of 8 without # sign. First 6 characters shows the amount or red, green and blue. There are 2 hexadecimal characters for each color. Each character may vary within 0-9 & a-f which means a total of 16 possibilities. For 2 characters, it means 256 possibilities. If you use 8-character length HEX code, last 2 characters symbolizes alpha of the color. In RGBA color format, there are 4 arguments. First 3 is red, green, and blue which is varying between 0 to 255 and last one is the alpha (or opacity) which varies from 0 to 1.

For the example in the image, if you convert each hexadecimal pair to decimals, 00 => 0, 52 => 82, cc => 204, you will get the RGB colors. Since, HEX color is 6 characters only, alpha is equal to 1.
How to use Online HEX to RGBA Converter?
You can convert a HEX color to RGBA by following these steps.
- First, enter the HEX code you want to convert to RGBA in the input area.
- Click the convert button. If the code you entered is valid, RGBA code will pop, otherwise you will see an error. You can also use the color picker directly, then you don't need to use Convert button since it automatically fills both color codes.
- You can copy the RGBA code to your clipboard by using the "Copy RGBA Color" button.
Frequently asked questions
Why convert HEX to RGBA at all?
Transparency. A plain HEX value has no alpha channel, so the moment you need a colour at 40% opacity you need it as RGBA — overlays, scrims and shadows all live there.
What does the A in RGBA stand for?
Alpha, from 0 for fully transparent to 1 for fully opaque. It controls the colour's own transparency, unlike the CSS opacity property, which fades the whole element including anything inside it.
What about the eight-digit HEX form?
Modern browsers accept #RRGGBBAA, where the last two digits are the alpha. It is more compact than RGBA, though harder to read at a glance — 80 is roughly half opacity, which is not obvious until you know it.
Does converting change the colour?
No. HEX and RGB describe the same values in different notation; #FF5733 and rgb(255, 87, 51) are identical. Only the alpha is genuinely new information.
Can I go the other way?
Yes — the RGBA to HEX Converter handles the reverse.