

Their alpha values range from 0 - 1.īackground-color: rgba(255, 255, 0, 0.5) Īs of the CSS Color Module Level 4, rgb and hsl works the same way as rgba and hsla does, accepting an optional alpha value. Using rgba or hsla color functions, that allow you to add the alpha channel (opacity) to the rgb and hsl functions. The CSS color name transparent creates a completely transparent color. Ways to create a (semi-) transparent color:

To achieve it, you have to modify the background-color of the element.
