How to Convert HEX to RGBA?
Enter any 6-digit hex color, then drag the opacity slider — the alpha channel (the fourth value in
rgba()) is just that opacity percentage expressed as a decimal from 0 to 1. A hex color and
100% opacity converts to rgba(r, g, b, 1); the same color at 50% opacity becomes
rgba(r, g, b, 0.5).
For example, #3498db at 50% opacity converts to rgba(52, 152, 219, 0.5).