CSS rgba() Function
CSS rgba() Function
The rgba() function is used to define the colors using the Red Green Blue Alpha (RGBA) model. It is an extension of RGB color values with an alpha channel which is basically used for specifying the opacity of the color.
Syntax:-
Its syntax is:- rgba(red, green, blue, alpha)
Further Explanation:-
Value | Description |
---|---|
red | Defines the intensity of red. Its value ranges between 0 and 255, or between 0% and 100%. |
green | Defines the intensity of green. Its value ranges between 0 and 255, or between 0% and 100%. |
blue | Defines the intensity of blue. Its value ranges between 0 and 255, or between 0% and 100% |
alpha | Defines the opacity between 0 and 1. |
Code Explanation
All Tutorials related to CSS Functions
attr() Function in CSS
calc() Function in CSS
conic-gradient() Function in CSS
counter() Function in CSS
cubic-bezier() Function in CSS
hsl() Function in CSS
hsla() Function in CSS
linear-gradient() Function in CSS
max() Function in CSS
min() Function in CSS
radial-gradient() Function in CSS
repeating-conic-gradient() Function in CSS
repeating-linear-gradient() Function in CSS
repeating-radial-gradient() Function in CSS
rgb() Function in CSS
rgba() Function in CSS
var() Function in CSS