Suppose your preferred color is red #FF0000
Adding 00 at the beginning will make it 100% transparent, and adding FF will make it 100% hard.
So, 100% transparent color: #00ff0000 and 100% solid color: #ffff0000
And any value in the range from 00 to ff can be used to adjust the transparency.
source share