Red Green Blue
In the RGB color model, colors are represented by specifying the intensity of the primary colors red, green, and blue.
The RGB color model is an additive color model, which means that it creates a wide range of colors by adding together different intensities of red, green, and blue light. In the RGB color model, the absence of color is represented by the color black, which is created by turning off all of the primary colors. The presence of all primary colors at full intensity creates the color white.
In HTML and CSS, RGB colors are specified using the
rgb() function, which takes three values between 0 and 255 that represent the intensity of the primary colors (red, green, and blue). For example, the color black is represented as
rgb(0, 0, 0) in RGB, and the color white is represented as
rgb(255, 255, 255).
- Abbreviation: RGB