RGB
Red-Green-Blue (RGB) is a color model that represents colors as mixtures of three underlying components (or channels), namely:red,green, andblue. This model describes a color with a sequence of three numbers (typically between 0.0 and 1.0, or between 0 and 255). Each number represents the primary colors' different intensities (or contributions) in determining the final color.
An RGB value by itself has no meaning. It's the color model that defines how the three components interact within acolor space to define a color. Graphically, a point in a three-dimensional grid or cube represents a color. Each dimension (or axis) corresponds to a different channel. The RGB color model is then acubic, orCartesian, coordinate system of the underlying color space.

For the web, the underlying color space for an RGB value issRGB (Standard RGB), and each RGB component is a number between 0 and 1.
Note thatsRGB is one ofseveral RGB color spaces. Other RGB color spaces, like theAdobe RGB color space, can represent a widergamut of color than thesRGB color space. The coordinates insRGB andAdobe RGB are different.
There are many ways to describe the RGB components of a color. InCSS, they can be represented in various ways: inhexadecimal notation as a single 24-bit integer (for example,#add8e6 is light blue) or in functional notation by usingrgb() with three percent values or numbers ranging from0 to255 (for example,rgb(46 139 87) is green). CSS also supports thesrgb,srgb-linear,a98-rgb, andprophoto-rgb color spaces for thecolor() function.
RGB is not the only color model that can represent thesRGBcolor space. Cylindrical coordinate systems like theHSL (hue-saturation-lightness) orHWB (hue-whiteness-blackness) color models are also used to represent ansRGB color on the web.
In this article
See also
<color>CSS data type- ColorAide: sRGB color space
- RGB color model on Wikipedia
- sRGB color space on Wikipedia
- Adobe RGB color space on Wikipedia