# RGB

RGB is an acronym for red, green, and blue. Colors in this system are produced by adding different intensities of red, green and blue light. This principle is called additive color mixing and is used e.g. in LCD displays as shown in the figure below. Each pixel is made up of a red, a green, and a blue subpixel.

## The RGB Color Model

The RGB color model can be understood as a cube in a three-dimensional Cartesian coordinate system with one axis each for the red, green and blue channels [BB09b, p. 186]. A color can therefore be defined as a vector $$(r,g,b)^\mathsf{T}$$, where $$r$$, $$g$$, and $$b$$ are the color's intensities for each channel. For the purpose of distinguishing RGB from other color models, we define the tuple $$(r, g, b)_\text{RGB} := (r,g,b)^\mathsf{T}$$. The figure shows the RGB cube with each channel's value in the $$[0, 1]$$ interval. However, in computer graphics, integral values between 0 and 255 – between 0 and FF in the hexadecimal system – are also a popular choice. For example, RGB colors can be specified in either notation both in CSS [Çe11] and OpenGL.

• Color matching:
• Color selection:

## Literature

[BB09b]
Burger, Wilhelm; Burge, Mark J.: Principles of Digital Image Processing: Fundamental Techniques. Undergraduate Topics in Computer Science. Springer-Verlag London, 1st edition, 2009.
[Çe11]
Çelik, Tantek; Lilley, Chris; Baron, L David et al.: CSS Color Module Level 3: W3C Recommendation 07 June 2011. World Wide Web Consortium, http://www.w3.org/TR/2011/REC-css3-color-20110607, 2011. Accessed: 2016-08-24.
[Ho]
How to interpret the sRGB color space (specified in IEC 61966-2-1) for ICC profiles. World Wide Web Consortium, https://www.w3.org/Graphics/Color/srgb. Accessed: 2016-08-24.