You could try putting the hex color into the color picker of GIMP or photo shop to get the RGB value and then using the alpha value. eg. red is #FF0000
or rgb(255,0,0
) if you want red with an alpha value of .5 then rgba(255,0,0,.5)
.
Maybe not exactly what you wanted but hopefully helps.