The rgb()
functional notation expresses a color according to its red, green, and blue components. An optional alpha component represents the color's transparency.
Note: The legacy rgba()
syntax is an alias for rgb()
, accepting the same parameters and behaving in the same way.