For faster navigation, this Iframe is preloading the Wikiwand page for RGB color model.

RGB color model

The RGB color model is an additive color model. In this model red, green and blue are added together to form a new color.

An RGB color can be made by shining three colored lights of red, green, and blue onto a white wall in a dark room. Each light has a dimmer (to regulate its intensity.)

A representation of additive color mixing. Projection of primary color lights on a white screen shows secondary colors where two overlap; the combination of all three of red, green, and blue in equal intensities makes white.

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.

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. 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.

The name of the model comes from the initials of the three primary colors, red, green, and blue.

The purpose of the RGB color model is for capturing, storing, and displaying images in digital electronic devices, such as photo cameras, television sets, video cameras and computers. Before the electronic age, the RGB color model already had a solid theory behind it, based in human perception of colors.

Additive color mixing: adding red to green gives yellow; adding green to blue gives cyan; adding blue to red gives magenta; adding all three primary colors together gives white.

The RGB color model is an additive color model in which red, green, and blue light are added together in various ways to reproduce a broad set of colors. The three light beams are added together, and their light spectra add to make the final color's spectrum.[1][2] Zero intensity for each component gives the darkest color (no light, considered the black), and full intensity of each gives a white. This is in stark contrast to physical paints, such as oil paint, which create black when mixed.

The additive color model is opposite to the subtractive color model, particularly the CMY color model.

The RGB color model is based on the Young–Helmholtz theory of trichromatic color vision, developed by Thomas Young and Hermann von Helmholtz in the early to mid-nineteenth century, and on James Clerk Maxwell's color triangle that elaborated that theory (circa 1860).

The first experiments with RGB in early color photography were made in 1861 by Maxwell himself, and involved the process of combining three color-filtered separate picture takes.[3] To reproduce the color photograph, three matching projections over a screen in a dark room were necessary.

The modern RGB technology for color CRT displays was patented by Werner Flechsig in Germany in 1938.[4]

Numeric values

[change | change source]

A color in the RGB color model is recorded by indicating how much of each of the red, green, and blue is included. The color is expressed as an RGB triplet (r,g,b), each component of which can vary from zero to a defined maximum value. If all the components are at zero the result is black; if all are at maximum, the result is the brightest representable white.

These ranges may be quantified in several different ways:

  • From 0 to 1, with any fractional value in between. This representation is used in theoretical analyses, and in systems that use floating point representations.
  • Each color component value can also be written as a percentage, from 0% to 100%.
  • In computers, the component values are often stored as integer numbers in the range 0 to 255, the range that a single 8-bit byte can offer. These are often represented as either decimal or hexadecimal numbers.
  • Sophisticated digital image equipment are often able to deal with larger integer ranges for each primary color, such as 0..1023 (10 bits), 0..65535 (16 bits) or even larger, by extending the 24-bits (three 8-bit values) to 32-bit, 48-bit, or 64-bit units.

For example, brightest saturated red is written in the different RGB notations as:

Notation RGB triplet
Arithmetic (1.0, 0.0, 0.0)
Percentage (100%, 0%, 0%)
Digital 8-bit per channel (255, 0, 0) or sometimes
#FF0000 (hexadecimal)
Digital 12-bit per channel (4095, 0, 0)
Digital 16-bit per channel (65535, 0, 0)
[change | change source]

References

[change | change source]
  1. Charles A. Poynton (2003). Digital Video and HDTV: Algorithms and Interfaces. Morgan Kaufmann. ISBN 1-55860-792-7.
  2. Nicholas Boughen (2003). Lightwave 3d 7.5 Lighting. Wordware Publishing, Inc. ISBN 1-55622-354-4.
  3. Robert Hirsch (2004). Exploring Colour Photography: A Complete Guide. Laurence King Publishing. ISBN 1-85669-420-8.
  4. Morton, David L. (1999). "Television Broadcasting". A History of Electronic Entertainment Since 1945 (PDF). IEEE. ISBN 0-7803-9936-6. Archived from the original (PDF) on March 6, 2009.

Other websites

[change | change source]
{{bottomLinkPreText}} {{bottomLinkText}}
RGB color model
Listen to this article

This browser is not supported by Wikiwand :(
Wikiwand requires a browser with modern capabilities in order to provide you with the best reading experience.
Please download and use one of the following browsers:

This article was just edited, click to reload
This article has been deleted on Wikipedia (Why?)

Back to homepage

Please click Add in the dialog above
Please click Allow in the top-left corner,
then click Install Now in the dialog
Please click Open in the download dialog,
then click Install
Please click the "Downloads" icon in the Safari toolbar, open the first download in the list,
then click Install
{{::$root.activation.text}}

Install Wikiwand

Install on Chrome Install on Firefox
Don't forget to rate us

Tell your friends about Wikiwand!

Gmail Facebook Twitter Link

Enjoying Wikiwand?

Tell your friends and spread the love:
Share on Gmail Share on Facebook Share on Twitter Share on Buffer

Our magic isn't perfect

You can help our automatic cover photo selection by reporting an unsuitable photo.

This photo is visually disturbing This photo is not a good choice

Thank you for helping!


Your input will affect cover photo selection, along with input from other users.

X

Get ready for Wikiwand 2.0 ๐ŸŽ‰! the new version arrives on September 1st! Don't want to wait?