CSS rgb() Function
CSS rgb() Function
The rgb() function is used to define colors using the Red Green Blue (RGB) model. Its value can be specified by rgb(red, green, blue). Each parameter determines the intensity of color and has values ranging from 0 to 255 or a percentage value from 0% to 100%.
Syntax:-
Its syntax is:- rgb(red, green, blue)
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% |