Additive color mixing: adding red to green will yield yellow; adding yellow to blue will yield white.
The RGB color space is an additive color space in which red, green, and blue light are combined in various ways to create other colors. The abbreviation "RGB" comes from the three constituent colors; any color in the gamut of the RGB color space can be created by mixing a certain amount of red, green, and blue light.
RGB is known as an additive color space because when light of two different frequencies travel together, from the point of view of an observer, these colors are added to create a new color experience. The colors red, green, and blue were chosen because each one corresponds roughly with one of the three types of color-sensitive cones in the human eye. With the appropriate combination of red, green and blue light, one can reproduce many of the colors that can be experienced by a human. For example pure red and green light produce yellow, red and blue make magenta, blue and green combine to make cyan, and all three together, when mixed at full intensity, create white.
One common application of the RGB color space is the display of computer graphics on a monitor. Each pixel on the screen can be represented in the computer's memory as independent values for red, green and blue. These values are converted into intensities by the computer's display hardware, and sent to the cathode ray tube or LCD display. By using the appropriate combination of red, green and blue light intensities, the computer display can reproduce many of the colors between its black level and white point. Typical display hardware in 2003 uses a total of 24 bits of information for each pixel; this corresponds to 8 bits each for red, green, and blue, giving a range of 256 possible values, or intensities, for each color. With this system, approximately 16.7 million discrete colors can be reproduced.
When written, RGB values are commonly specified using three integers between 0 and 255, representing red, green, and blue intensities, in that order. For example:
- (0, 0, 0) is black
- (255, 255, 255) is white
- (255, 0, 0) is red
- (0, 255, 0) is green
- (0, 0, 255) is blue
- (255, 255, 0) is yellow
- (0, 255, 255) is cyan
- (255, 0, 255) is magenta
See also: YUV
RGB is a type of component video signal used in the video electronics industry. It consists of three signals - red, green and blue - carried on three separate cables. Extra cables are sometimes needed to carry synchronising signals. RGB signal formats are often based on modified versions of the RS-170 and RS-343 standards for monochrome video.