Difference between opacity and rgba in case of applying transparency.
The main difference is case of inheritance. Property “opacity” affects transparency of the element and all elements beneath it, whereas RGBA model defines transparency for a single element. You can see it on the example below: