RGB color space


An RGB color space is any additive color space based on the RGB color model. A particular color space that employs RGB primaries for part of its specification is defined by the three chromaticities of the red, green, and blue additive primaries, and can produce any chromaticity that is the 2D triangle defined by those primary colors. The primary colors are specified in terms of their CIE 1931 color space chromaticity coordinates, linking them to human-visible color.
RGB is an abbreviation for red–green–blue.

Intuition

An RGB color can be understood by thinking of it as all possible colors that can be made from three colored lights for red, green, and blue. Imagine, for example, shining three lights together onto a white wall in a dark room: one red light, one green light, and one blue light, each with dimmers. If only the red light is on, the wall will be red. If only the green light is on, the wall will look green. If the red and green lights are on together, the wall will look yellow. Dim the red light and the wall will become more of a yellow-green. Dim the green light instead, and the wall will become more orange. Bringing up the blue light a bit will cause the orange to become less saturated and more whitish. In all, each setting of the three dimmers will produce a different result, either in color or in brightness or both. The set of all possible results is the gamut defined by those particular color lamps. Swap the red lamp for one of a different brand that is slightly more orange, and there will be a slightly different gamut, since the set of all colors that can be produced with the three lights will be changed.

Applications

A computer LCD display can be thought of as a grid of millions of little red, green, and blue lamps, each with their own dimmers. The gamut of the display will depend on the three colors used for the red, green, and blue lights, their pattern of organisation, and their luminance when on.
Some color spaces defined for this purpose with RGB primaries are sRGB and Adobe RGB. Adobe has recently developed another color space called Adobe Wide Gamut RGB, which is even larger, in detriment to gamut density.
As of 2007, sRGB is by far the most commonly used color space for computer displays. HDTVs use a similar space, commonly called Rec. 709, sharing the sRGB primaries. The sRGB space is considered adequate for most consumer applications. Having all devices use the same color space is convenient in that an image does not need to be converted from one color space to another before being displayed. However, sRGB's limited gamut leaves out many highly saturated colors that can be produced by printers or in film, and thus is not ideal for some high quality applications.

Specifications with RGB primaries