All Topics  
RGB color model

 

   Email Print
   Bookmark   Link






 

RGB color model



 
 
The RGB color model is an additive color model
Additive color

An additive color model involves light emitted directly from a source or illuminant of some sort. The additive reproduction process usually uses red, green and blue light to produce the other colors....
 in which red
Red

Red is any of a number of similar colors evoked by light consisting predominantly of the longest wavelengths of light discernible by the human eye, in the wavelength range of roughly 625?740 Nanometer....
, green
Green

Green is a color, the perception of which is evoked by light having a spectrum dominated by energy with a wavelength of roughly 520?570-Nanometre....
, and blue
Blue

Blue is a colour, the perception of which is evoked by light having a spectrum dominated by energy with a wavelength of roughly 440?490 Nanometre....
 light are added together in various ways to reproduce a broad array of color
Color

Color or colour is the visual perception property corresponding in humans to the categories called red, yellow, blue and others....
s.






Discussion
Ask a question about 'RGB color model'
Start a new discussion about 'RGB color model'
Answer questions from other users
Full Discussion Forum



Encyclopedia


Rgb Illumination
Barn Grand Tetons Rgb Separation
The RGB color model is an additive color model
Additive color

An additive color model involves light emitted directly from a source or illuminant of some sort. The additive reproduction process usually uses red, green and blue light to produce the other colors....
 in which red
Red

Red is any of a number of similar colors evoked by light consisting predominantly of the longest wavelengths of light discernible by the human eye, in the wavelength range of roughly 625?740 Nanometer....
, green
Green

Green is a color, the perception of which is evoked by light having a spectrum dominated by energy with a wavelength of roughly 520?570-Nanometre....
, and blue
Blue

Blue is a colour, the perception of which is evoked by light having a spectrum dominated by energy with a wavelength of roughly 440?490 Nanometre....
 light are added together in various ways to reproduce a broad array of color
Color

Color or colour is the visual perception property corresponding in humans to the categories called red, yellow, blue and others....
s. The name of the model comes from the initials of the three additive primary colors
Primary color

Primary colors are sets of colors that can be combined to make a useful range of colors. For human applications, three are often used; for additive combination of colors, as in overlapping projected lights or in cathode ray tube displays, the primary colors normally used are red, green, and blue....
, red, green, and blue.

The main purpose of the RGB color model is for the sensing, representation, and display of images in electronic systems, such as televisions and computers, though it has also been used in conventional photography
Photography

Photography is the process, activity and art of creating still or moving by recording radiation on a sensitive medium, such as a photographic film, or an ....
. Before the electronic age, the RGB color model already had a solid theory behind it, based in human perception of colors.

RGB is a device-dependent color space: different devices detect or reproduce a given RGB value differently, since the color elements (such as phosphors or dyes) and their response to the individual R, G, and B levels vary from manufacturer to manufacturer, or even in the same device over time. Thus an RGB value does not define the same color across devices without some kind of color management
Color management

In digital imaging systems, color management is the controlled conversion between the color representations of various devices, such as s, digital cameras, monitors, TV screens, film printers, computer printers, offset presses, and corresponding media....
.

Typical RGB input devices are color TV and video camera
Professional video camera

A professional video camera is a high-end device for recording electronic moving images . Originally developed for use in television Television studio, they are now commonly used for corporate and educational videos, music videos, and direct-to-video movies....
s, image scanner
Image scanner

In computing, a scanner is a device that optically scans images, printed text, handwriting, or an object, and converts it to a digital image. Common examples found in offices are variations of the desktop scanner where the document is placed on a glass window for scanning....
s, and digital camera
Digital camera

A digital camera is a camera that takes video or still photographs, or both, digitally by recording digital image via an electronics .Many compact digital still cameras can record sound and moving video as well as still photographs....
s. Typical RGB output devices are TV sets of various technologies (CRT
Cathode ray tube

The cathode ray tube is a vacuum tube containing an electron gun and a fluorescent screen, with internal or external means to accelerate and deflect the electron beam, used to create images in the form of light emitted from the fluorescent screen....
, LCD
Liquid crystal display television

File:LCD generic tv.jpgLiquid-colour display televisions are television sets that use Liquid crystal display technology to produce images....
, plasma
Plasma display

A plasma display panel is a type of flat panel display common to large television displays . Many tiny cells between two panels of glass hold an inert mixture of noble gases....
, etc.), computer
Computer display

A visual display unit, often called simply a monitor or display, is a piece of electrical equipment which displays images generated from the video output of devices such as computers, without producing a permanent record....
 and mobile phone
Mobile phone

A mobile phone is a long-range, electronic device used for mobile voice or data communication over a network of specialized base stations known as cell sites....
 displays, video projector
Video projector

A video projector takes a video Signalling and projects the corresponding image on a projection screen using a lens system. All video projectors use a very bright light to project the image, and most modern ones can correct any curves, blurriness, and other inconsistencies through manual settings....
s, multicolor LED displays, and large screens as JumboTron
Jumbotron

A JumboTron is a large-screen television using large-screen television technology developed by Sony, typically used in sports stadiums and concert venues to show close up shots of the event....
, etc. Color printers, on the other hand, are not RGB devices, but subtractive color
Subtractive color

A subtractive color model explains the mixing of paints, dyes, inks, and natural colorants to create a range of colors, where each such color is caused by the mixture absorbing some wavelengths of light and reflecting others....
 devices (typically CMYK color model
CMYK color model

CMYK is a subtractive color color model, used in color printing, also used to describe the printing process itself. Though it varies by print house, press operator, press manufacturer and press run, ink is typically applied in the order of the abbreviation....
).

This article discusses concepts common to all the different color spaces that use the RGB color model, which are used in one implementation or another in color image-producing technology.

Additive primary colors


To form a color with RGB, three colored light beams (one red, one green, and one blue) must be superimposed (for example by emission from a black screen, or by reflection from a white screen). Each of the three beams is called a component of that color, and each of them can have an arbitrary intensity, from fully off to fully on, in the mixture.

The RGB color model is additive in the sense that the three light beams are added together, and their light spectra add, wavelength for wavelength, to make the final color's spectrum.

Zero intensity for each component gives the darkest color (no light, considered the black), and full intensity of each gives a white
White

White is a color, the Color vision#Physiology of color perception which is evoked by light that stimulates all three types of color sensitive cone cells in the human eye in near equal amount and with high brightness compared to the surroundings....
; the quality of this white depends on the nature of the primary light sources, but if they are properly balanced, the result is a neutral white matching the system's white point
White point

A white point is a set of tristimulus or chromaticity coordinates that serve to define the color "white" in image capture, encoding, or reproduction....
. When the intensities for all the components are the same, the result is a shade of gray, darker or lighter depending on the intensity. When the intensities are different, the result is a colorized hue
Hue

Hue is one of the main properties of a color described with names such as "red", "yellow", etc. The two other main properties are lightness and colorfulness....
, more or less saturated
Saturation (color theory)

In colorimetry and color theory, colorfulness, chroma, and saturation are related but distinct concepts referring to the perceived intensity of a specific color....
 depending on the difference of the strongest and weakest of the intensities of the primary colors employed.

When one of the components has the strongest intensity, the color is a hue near this primary color (reddish, greenish, or bluish), and when two components have the same strongest intensity, then the color is a hue of a secondary color (a shade of cyan
Cyan

Cyan may be used as the name of any of a number of a range of colors in the blue/green part of the spectrum. In reference to the visible spectrum cyan is used to refer to the color obtained by mixing equal amounts of green and blue light or the removal of red from white light....
, magenta
Magenta

Magenta is a purplish pink color evoked by lights with less power in yellowish-green wavelengths than in blue and red wavelengths . In light experiments, magenta can be produced by removing the lime-green wavelengths from white light....
 or yellow
Yellow

Yellow is the color evoked by light that stimulates both the L and M cone cells of the retina about equally, but does not significantly stimulate the S cone cells; that is, light with much red and green but not very much blue....
). A secondary color is formed by the sum of two primary colors of equal intensity: cyan is green+blue, magenta is red+blue, and yellow is red+green. Every secondary color is the complement of one primary color; when a primary and its complementary secondary color are added together, the result is white: cyan complements red, magenta complements green, and yellow complements blue.

The RGB color model itself does not define what is meant by red, green, and blue colorimetrically, and so the results of mixing them are not specified as absolute, but relative to the primary colors. When the exact chromaticities
Chromaticity

Chromaticity is an objective specification of the quality of a color regardless of its luminance, that is, as determined by its colorfulness and hue....
 of the red, green, and blue primaries are defined, the color model then becomes an absolute color space
Absolute color space

In color science, there are two meanings of the term absolute color space:* A color space in which the perceptual difference between colors is directly related to color difference as represented by points in the color space....
, such as sRGB
SRGB color space

sRGB is a standard RGB color spaces created cooperatively by Hewlett-Packard and Microsoft for use on monitors, printers, and the Internet....
 or Adobe RGB
Adobe RGB color space

The Adobe RGB color space is an RGB color space developed by Adobe Systems in 1998. It was designed to encompass most of the colors achievable on CMYK color printing, but by using RGB color model primary colors on a device such as the computer display....
; see RGB color spaces for more details.

Physical principles for the choice of red, green, and blue


Ciexy1931 Srgb Gamut
The choice of primary colors is related to the physiology of the human eye; good primaries are stimuli that maximize the difference between the responses of the cone cells of the human retina
Eye

Eyes are Organ that detect light, and send signals along the optic nerve to the visual system and other areas of the brain. Complex optical systems with resolving power have come in ten fundamentally different forms, and 96% of animal species possess a complex optical system....
 to light of different wavelengths, and that thereby make a large color triangle
Color triangle

A color triangle is an arrangement of colors within a triangle, based on the Additive color combination of three primary colors at its corners....
.

The normal three kinds of light-sensitive photoreceptor cells in the human eye (cone cells) respond most to yellow (long wavelength or L), green (medium or M), and violet (short or S) light (peak wavelengths near 570 nm, 540 nm and 440 nm, respectively). The difference in the signals received from the three kinds allows the brain to differentiate a wide gamut
Gamut

In color reproduction, including computer graphics and photography, the gamut, or color gamut , is a certain complete subset of colors....
 of different colors, while being most sensitive (overall) to yellowish-green light and to differences between hue
Hue

Hue is one of the main properties of a color described with names such as "red", "yellow", etc. The two other main properties are lightness and colorfulness....
s in the green-to-orange region.

As an example, suppose that light in the orange range of wavelengths (approximately 577 nm to 597 nm) enters the eye and strikes the retina. Light of these wavelengths would activate both the medium and long wavelength cones of the retina, but not equally — the long-wavelength cells will respond more. The difference in the response can be detected by the brain and associated with the concept that the light is orange. In this sense, the orange appearance of objects is simply the result of light from the object entering our eye and stimulating the relevant kinds of cones simultaneously but to different degrees.

Use of the three primary colors is not sufficient to reproduce all colors; only colors within the color triangle
Color triangle

A color triangle is an arrangement of colors within a triangle, based on the Additive color combination of three primary colors at its corners....
 defined by the chromaticities
Chromaticity

Chromaticity is an objective specification of the quality of a color regardless of its luminance, that is, as determined by its colorfulness and hue....
 of the primaries can be reproduced by additive mixing of non-negative amounts of those colors of light.

History of RGB color model theory and usage


Tartan Ribbon
The RGB color model is based on the Young–Helmholtz theory of trichromatic color vision, developed by Thomas Young
Thomas Young

Thomas Young may refer to:*Thomas Young , Scottish Presbyterian and author*Thomas Young , member of the Sons of Liberty*Thomas Young , British polymath, scientist and Egyptologist...
 and Hermann Helmholtz, in the early to mid nineteenth century, and on James Clerk Maxwell
James Clerk Maxwell

James Clerk Maxwell was a Scotland Mathematical physics. His most significant achievement was the development of the classical electromagnetic theory, synthesizing all previous unrelated observations, experiments and equations of electricity, magnetism and even optics into a consistent theory....
's color triangle
Color triangle

A color triangle is an arrangement of colors within a triangle, based on the Additive color combination of three primary colors at its corners....
 that elaborated that theory (circa 1860).

Photography


First experiments with RGB in early color photography
Color photography

Color photography is photography that uses media capable of representing colors which are produced chemically during the Photographic processes phase....
 were made in 1861 by Maxwell himself, and involved the process of three color-filtered separate takes. To reproduce the color photograph, three matching projections over a screen in a dark room were necessary.

The additive RGB model and variants such as orange–green–violet were also used in the Autochrome Lumière
Autochrome Lumière

The Autochrome Lumi?re is an early color photography process. Patented in 1903 by the Lumi?re brothers in France and first marketed in 1907, it remained the principal color photography process available until it was superseded by the advent of color photographic film during the mid 1930s....
 color plates and other screen-plate technologies such as the Joly color screen
Joly Color Screen

The Joly Color process is an early additive color photography process devised by Dublin physicist John Joly in 1894....
 and the Paget process
Paget process

The Paget process was an early color photography process patented in Britain in 1912 by G.S. Whitfield and first marketed by the Paget Prize Plate Company in 1913....
 in the early twentieth century. Color photography by taking three separate plates was used by other pioneers, such as Russian Sergey Prokudin-Gorsky in the period 1909 through 1915. Such methods last until about 1960 using the expensive and extremely complex tri-color carbro
Carbon print

A carbon print is a Photography print produced by soaking a carbon tissue in a dilute sensitizing solution of potassium dichromate. The solution also consists of carbon, gelatin, and a coloring agent....
 Autotype
Autotype

Autotype is a function in some computer applications or Computer program, typically those containing form , which fills in a field once you have typed in the first few letters....
 process.

When employed, the reproduction of prints from three-plate photos was done by dyes or pigments using the complementary CMY
CMY

CMY may refer to:*Sparta/Fort McCoy Airport in Sparta, Wisconsin*CMYK color model...
 model, by simply using the negative plates of the filtered takes: reverse red gives the cyan plate, and so on.

Television


In pre-electronics, patents on mechanically scanned color systems exist since 1889 in Russia
Russia

Russia , or the Russian Federation , is a list of countries spanning more than one continent country extending over much of northern Eurasia....
. The color TV
Color television

Color television refers to the Technology of television and practices associated with television's transmission of video in color....
 pioneer John Logie Baird
John Logie Baird

John Logie Baird was a Scottish engineer and inventor of the world's first working television system. Although Baird's electromechanical system was eventually displaced by purely electronic systems , his early successes demonstrating working television broadcasts and his colour and cinema television work earn him a prominent place in televis...
 demonstrated the world's first RGB color transmission in 1928, and also the world's first color broadcast in 1938, in London
London

London is the capital of both England and the United Kingdom, and the most populous municipality in the European Union. An important settlement for two millennia, History of London goes back to its founding by the Roman Empire....
. In his experiments, scanning and displaying were made by mechanical means through spinning colorized wheels.

The Columbia Broadcasting System (CBS)
CBS

CBS Broadcasting Inc. is an American radio network and television network. The name is derived from the initials of Columbia Broadcasting System, its former legal name....
 began experimental RGB field-sequential color system
Field-sequential color system

A field-sequential color system is a color television system in which the primary color information is transmitted in successive images, and which relies on the human vision system to fuse the successive images into a color picture....
 in 1940. Images were electronically scanned, but it still used a moving part: the transparent RGB color wheel rotating at above 1,200 rpm synchronized in front of both the monochromatic camera and the cathode-ray tube (CRT) receiver counterpart.

The modern RGB shadow mask
Shadow mask

The shadow mask is one of two major technologies used to manufacture cathode ray tube televisions and computer displays that produce color images ....
 technology for color CRT displays was patented by Werner Flechsig in Germany in 1938.

Personal computers


Early personal computer
Personal computer

A personal computer is any general-purpose computer whose original sales price, size, and capabilities make it useful for individuals, and which is intended to be operated directly by an end user, with no intervening computer operator....
s of the late 1970s and early 1980s, such as those from Apple
Apple II series

The Apple II was one of the first highly successful mass produced microcomputer products, manufactured by Apple Computer and introduced in 1976....
, Atari
Atari 8-bit family

The Atari 8-bit family is a series of 8-bit home computers manufactured from 1979 to 1992. All are based on the MOS Technology MOS Technology 6502 central processing unit and were the first home computers designed with custom coprocessor chips, giving them the most powerful graphic, sound and I/O subsystems of any 8 bit machine of their time...
 and Commodore
Commodore VIC-20

The VIC-20 is an 8-bit home computer which was sold by Commodore International. The VIC-20 was announced in 1980, roughly three years after Commodore's first personal computer, the Commodore PET....
, do not use RGB as their main method to manage colors, but rather composite video
Composite video

Composite video is the format of an analog television signal before it is combined with a sound signal and modulation onto an Radio Frequency carrier wave....
. IBM
IBM

International Business Machines Corporation, abbreviated IBM and nicknamed "Big Blue" , is a multinational corporation computer technology and consulting corporation headquartered in Armonk, New York, New York, United States....
 introduced a 16-color scheme (one bit each for RGB and Intensity) with the Color Graphics Adapter
Color Graphics Adapter

The Color Graphics Adapter , originally also called the Color/Graphics Adapter or IBM Color/Graphics Monitor Adapter, introduced in 1981, was International Business Machines's first color graphics card, and the first color computer display standard for the IBM PC....
 (CGA) for its first IBM PC
IBM PC

The IBM Personal Computer, commonly known as the IBM PC, is the original version and progenitor of the IBM PC compatible hardware platform ....
 (1981), later improved with the Enhanced Graphics Adapter
Enhanced Graphics Adapter

The Enhanced Graphics Adapter is the IBM PC computer display standard specification located between Color Graphics Adapter and Video Graphics Array in terms of color and space resolution....
 (EGA) in 1984. The first manufacturer of a truecolor
Truecolor

Truecolor is a method of representing and storing graphical image information in an RGB color space such that a very large number of colors, shades, and hues can be displayed in an image, such as in high quality photographic images or complex graphics....
 graphic card for PCs (the TARGA) was Truevision
Truevision

Truevision, Inc. was a maker of digital video processing add-on boards for PC computers. It was founded by Cathleen Asch, Carl Calabria, Jospeh Haaf, Bryan Hunt, Brad Pillow, Joe Shepard and Jeff Walters and others when AT&T split off their AT&T EPICenter in 1987....
 in 1987, but was not until the arrival of the Video Graphics Array
Video Graphics Array

The term Video Graphics Array refers specifically to the display hardware first introduced with the IBM Personal System/2 line of computers in 1987, but through its widespread adoption has also come to mean either an analogue electronics computer display standard, the 15-pin D-subminiature VGA connector or the 640×480 resolution its...
 (VGA) in 1988 that RGB became popular, mainly due to the analog signal
Analog signal

An analog or analogue signal is any continuous function Signal for which the time varying feature of the signal is a representation of some other time varying quantity, i.e analogous to another time varying signal....
s in the connection between the adapter and the monitor
Computer display

A visual display unit, often called simply a monitor or display, is a piece of electrical equipment which displays images generated from the video output of devices such as computers, without producing a permanent record....
 which allowed a very wide range of RGB colors.

RGB devices


RGB and displays


Crt Color Enhanced
Rgb Pixels
Rbg Led
One common application of the RGB color model is the display of colors on a cathode ray tube
Cathode ray tube

The cathode ray tube is a vacuum tube containing an electron gun and a fluorescent screen, with internal or external means to accelerate and deflect the electron beam, used to create images in the form of light emitted from the fluorescent screen....
 (CRT), liquid crystal display
Liquid crystal display

A liquid crystal display is an Electro-optic modulator shaped into a thin, flat panel made up of any number of color or monochrome pixels filled with liquid crystals and arrayed in front of a Light#Light sources or reflector....
 (LCD), plasma display
Plasma display

A plasma display panel is a type of flat panel display common to large television displays . Many tiny cells between two panels of glass hold an inert mixture of noble gases....
, or LED display such as a television, a computer’s monitor, or a large scale screen. Each pixel
Pixel

In digital imaging, a pixel is the smallest item of information in an image. Pixels are normally arranged in a 2-dimensional grid, and are often represented using dots, squares, or rectangles....
 on the screen is built by driving three small and very close but still separated RGB light sources. At common viewing distance, the separate sources are indistinguishable, which tricks the eye to see a given solid color. All the pixels together arranged in the rectangular screen surface conforms the color image.

During digital image processing
Digital image processing

Digital image processing is the use of computer algorithms to perform on digital images. As a subfield of digital signal processing, digital image processing has many advantages over analog image processing; it allows a much wider range of algorithms to be applied to the input data, and can avoid problems such as the build-up of noise and si...
 each pixel can be represented in the computer memory
Computer memory

Computer memory is usually meant to refer to the semiconductor technology that is used to store information in Electronics devices. Current primary computer memory makes use of integrated circuits consisting of silicon-based transistors....
 or interface hardware (for example, a graphics card) as binary
Binary

Binary means composed of two parts or two pieces. It contrasts with Unary, Ternary, Quaternary , and so on.Binary may also refer to:* Binary option, also known as digital option OR all-or-nothing option...
 values for the red, green, and blue color components. When properly managed, these values are converted into intensities or voltages via gamma correction
Gamma correction

Gamma correction, gamma nonlinearity, gamma encoding, or often simply gamma, is the name of a nonlinear operation used to code and decode luminance or tristimulus values in video or still image systems....
 to correct the inherent nonlinearity of some devices, such that the intended intensities are reproduced on the display.

Video electronics

RGB is also the term referring to a type of component video
Component video

Component video is a video signal that has been split into two or more components. In popular use, it refers to a type of Analog signal video information that is transmitted or stored as three separate signals....
 signal used in the video
Video

Video is the technology of electronics Videography, recording, processing, storing, transmitting, and reconstructing a sequence of still images representing Scene in motion....
 electronics industry. It consists of three signals—red, green, and blue—carried on three separate cables/pins. Extra cables are sometimes needed to carry synchronizing signals. RGB signal formats are often based on modified versions of the RS-170 and RS-343 standards for monochrome video. This type of video signal is widely used in Europe
Europe

Europe is, conventionally, one of the world's seven continents. Comprising the westernmost peninsula of Eurasia, Europe is generally divided from Asia to its east by the water divide of the Ural Mountains, the Ural , the Caspian Sea, and by the Caucasus Mountains to the southeast....
 since it is the best quality signal that can be carried on the standard SCART
SCART

SCART is a France-originated standard and associated 21-pin connector for connecting audio-visual equipment together. It is also known as P?ritel , 21-pin EuroSCART and Euroconnector....
 connector. Outside Europe, RGB is not very popular as a video signal format; S-Video
S-Video

Separate Video, more commonly known as S-Video, and sometimes incorrectly referred to as "Super Video" and also known as Y/C, is an analog signal video signal that carries the video data as two separate signals, lumen and chroma ....
 takes that spot in most non-European regions. However, almost all computer monitors around the world use RGB.

Video framebuffer

A framebuffer
Framebuffer

A framebuffer is a video output device that drives a video display from a memory buffer containing a complete video frame of data. The information in the buffer typically consists of color values for every pixel on the screen....
 is a digital device for computers which stores in the so-called video memory (conformed by an array of Video RAM or similar chip
Chip

Food * Chips, French fries, long cuts of potato that are deep fried* Corn chip, a snack food made from corn* Tortilla chip, a snack food made from corn tortillas...
s) the digital image to be displayed on the monitor. Driven by software, the CPU
Central processing unit

A central processing unit is an electronic circuit that can execute computer programs. This broad definition can easily be applied to many early computers that existed long before the term "CPU" ever came into widespread usage....
 or other specialized chips write the appropriate byte
Byte

A byte is a basic unit of measurement of Computer storage in computer science. In many computer architectures it is a Byte addressing memory address space....
s in the video memory to conform the image, which an electronic video generator sends to the monitor. Modern systems encode pixel color values by devoting some bit
Bit

A bit is a binary numeral system numerical digit, taking a value of either 0 or 1. Binary digits are a basic unit of information Computer data storage and transmission in digital computing and digital information theory....
s groupings for each of the RGB separate components. RGB information can be either carried by the pixel bits themselves or in a separate Color Look-Up Table (CLUT) if indexed color
Indexed color

In computing, indexed color is a technique to manage digital images' colors in a limited fashion, in order to save computer's computer data storage and Hard disk drive, while speeding up display refresh and telecom transfers....
 graphic modes are used.

By using an appropriate combination of red, green, and blue intensities, many colors can be displayed. Current typical display adapters use up to 24-bit
24-bit

The IBM System/360, announced in 1964, was an extremely popular computer system with 24-bit addressing and 32-bit general registers and arithmetic. The early 1980s saw the first popular personal computers, including the IBM PC/AT with an Intel 80286 processor using 24-bit addressing and 16-bit general registers and arithmetic, and the Apple Inc....
s of information for each pixel: 8-bit per component multiplied by three components (see the Digital representations
RGB color model

The RGB color model is an additive color in which red, green, and blue light are added together in various ways to reproduce a broad array of colors....
 section below). With this system, 16,777,216 (2563 or 224) discrete combinations of R, G and B values are allowed, providing thousands of different (though not necessarily distinguishable) hue
Hue

Hue is one of the main properties of a color described with names such as "red", "yellow", etc. The two other main properties are lightness and colorfulness....
, saturation
Saturation (color theory)

In colorimetry and color theory, colorfulness, chroma, and saturation are related but distinct concepts referring to the perceived intensity of a specific color....
, and lightness
Lightness (color)

Lightness is a property of a color, or a dimension of a color space, that is defined in a way to reflect the subjective brightness perception of a color for humans....
 shades.

Nonlinearity

In classic cathode ray tube
Cathode ray tube

The cathode ray tube is a vacuum tube containing an electron gun and a fluorescent screen, with internal or external means to accelerate and deflect the electron beam, used to create images in the form of light emitted from the fluorescent screen....
 (CRT) devices, the brightness of a given point over the phosphorescent screen due to the impact of accelerated electron
Electron

The electron is a subatomic particle that carries a negative electric charge. It has elementary particle and is believed to be a point particle....
s is not proportional to the voltage applied to electrons in their RGB electron gun
Electron gun

An electron gun is an electrical component that produces an electron beam that has a precise kinetic energy and is most often used in televisions and Computer display which use cathode ray tube technology, as well as in other instruments, such as electron microscopes and particle accelerators....
s, but to an expansive function of that voltage. The amount of this deviation is known as its gamma
Gamma correction

Gamma correction, gamma nonlinearity, gamma encoding, or often simply gamma, is the name of a nonlinear operation used to code and decode luminance or tristimulus values in video or still image systems....
 value , the argument for a power law
Power law

A power law is a special kind of mathematical relationship between two quantities. If one quantity is the frequency of an event, the relationship is a power-law distribution, and the frequencies decrease very slowly as the size of the event increases....
 function, which closely describes this behaviour. A linear response is given by a gamma value of 1.0, but actual CRT nonlinearities have a gamma value around 2.0 to 2.5.

Similarly, the intensity of the output on TV and computer display devices is not directly proportional to the R, G, and B applied electric signals (or file data values which drive them thru Digital-to-Analog Converter
Digital-to-analog converter

In electronics, a digital-to-analog converter is a device for converting a digital code to an analog signal .An analog-to-digital converter performs the reverse operation....
s—DAC). On a typical standard 2.2-gamma CRT display, an input intensity RGB value of (0.5, 0.5, 0.5) only outputs about 22% of that when displaying the full (1.0, 1.0, 1.0), instead of at 50%. To obtain the correct response, a gamma correction
Gamma correction

Gamma correction, gamma nonlinearity, gamma encoding, or often simply gamma, is the name of a nonlinear operation used to code and decode luminance or tristimulus values in video or still image systems....
 is used in encoding the image data, and possibly further corrections as part of the color calibration
Color calibration

The aim of color calibration is to measure or adjust the color response of a device to establish a known relationship to a standard color space....
 process of the device. Gamma affects black-and-white
Black-and-white

Black-and-white is a number of monochrome forms in visual arts. Most forms of visual technology start out in black and white, then slowly evolve into color as technology progresses....
 TV as well as color. In standard color TV, signals are already broadcast in a gamma-compensated fashion by TV stations.

Display technologies different from CRT (as LCD, plasma, LED, etc.) may behave nonlinearly in different ways. When they are intended to display standard TV and video shows, they are built in a such way that they behave in gamma like an older CRT TV monitor. In digital image processing, gamma correction can be applied either by the hardware or by the software packages used.

Other input/output RGB devices may have also nonlinear responses, depending on the technology employed. In any case, nonlinearity (whether gamma-related or not) is not part of the RGB color model in itself, although different standards that use RGB can also specify the gamma value and/or other nonlinear parameters involved.

RGB and cameras


In color television and video camera
Professional video camera

A professional video camera is a high-end device for recording electronic moving images . Originally developed for use in television Television studio, they are now commonly used for corporate and educational videos, music videos, and direct-to-video movies....
s manufactured before the 1990s, the incoming light was separated by prism
Prism (optics)

In optics, a prism is a transparent optical element with flat, polished surfaces that refraction light. The exact angles between the surfaces depend on the application....
s and filters into the three RGB primary colors feeding each color into a separate video camera tube
Video camera tube

In older video cameras, before the mid to late 1980s, a video camera tube or pickup tube was used instead of a charge-coupled device . Several types were in use from the 1930s to the 1980s....
 (or pickup tube). These tubes are a type of cathode ray tube, not to be confused with that of CRT displays.

With the arriving of commercially viable charge-coupled device
Charge-coupled device

A charge-coupled device is an analog signal shift register that enables the transportation of analog signals through successive stages , controlled by a clock signal....
 (CCD) technology in the 1980s, first the pickup tubes were replaced with this kind of sensors. Later, higher scale integration electronics was applied (mainly by Sony
Sony

is a multinational corporation list of conglomerates corporation headquartered in Minato, Tokyo, Japan, and one of the world's largest media conglomerates with revenue exceeding US$99.1 billion ....
), simplifying and even removing the intermediate opticals, up to a point to reduce the size of video camera
Video camera

File:Sonyhdrfx1.jpgA video camera is a camera used for electronic motion picture acquisition, initially developed by the television industry but now common in other applications as well....
s for domestic use until convert them in handy and full camcorder
Camcorder

A camcorder is a portable consumer electronics device for recording video and Sound recording using a built-in recorder unit. The camcorder contains both a video camera and a video recorder in one unit, hence its compound name....
s. Current webcam
Webcam

File:Logitech E2500 webcam.jpgWebcams are video capture connected to computer or computer network, often using Universal Serial Bus or, if they connect to networks, ethernet or Wi-Fi....
s and mobile phone
Mobile phone

A mobile phone is a long-range, electronic device used for mobile voice or data communication over a network of specialized base stations known as cell sites....
s with cameras are the most miniaturized commercial forms of such technology.

Photographic digital camera
Digital camera

A digital camera is a camera that takes video or still photographs, or both, digitally by recording digital image via an electronics .Many compact digital still cameras can record sound and moving video as well as still photographs....
s that use a CMOS
CMOS

Complementary metal?oxide?semiconductor , is a major class of integrated circuits. CMOS technology is used in microprocessors, microcontrollers, Static Random Access Memory, and other digital logic circuits....
 or CCD image sensor
Image sensor

An image sensor is a device that converts an optical image to an electric signal. It is used mostly in digital cameras and other imaging devices....
 often operate with some variation of the RGB model. In a Bayer filter
Bayer filter

A Bayer filter mosaic is a color filter array for arranging RGB color model color filters on a square grid of photosensors. Its particular arrangement of color filters is used in most single-chip digital s used in digital cameras, camcorders, and scanners to create a color image....
 arrangement, green is given twice as many detectors as red and blue (ratio 1:2:1) in order to achieve higher luminance
Luminance

Luminance is a Photometry measure of the luminous intensity per unit area of light travelling in a given direction. It describes the amount of light that passes through or is emitted from a particular area, and falls within a given solid angle....
 resolution than chrominance
Chrominance

Chrominance , is the signal used in video systems to convey the color information of the picture, separately from the accompanying luma signal....
 resolution. The sensor has a grid of red, green, and blue detectors arranged so that the first row is RGRGRGRG, the next is GBGBGBGB, and that sequence is repeated in subsequent rows. For every channel, missing pixels are obtained by interpolation
Interpolation

In the mathematics subfield of numerical analysis, interpolation is a method of constructing new data points within the range of a discrete set of known data points....
 in the demosaicing
Demosaicing

A demosaicing algorithm is a digital image processing used to reconstruct a full color image from the incomplete color samples output from an overlaid with a a color filter array ....
 process to build up the complete image. Also, other processes used to be applied in order to map the camera RGB measurements into a standard RGB color space
RGB color space

An RGB color space is any additive color space based on the RGB color model. A particular RGB color space is defined by the three chromaticity of the red, green, and blue additive primaries, and can produce any chromaticity that is the triangle defined by those primary colors....
 as sRGB.

RGB and scanners

In computing, an image scanner
Image scanner

In computing, a scanner is a device that optically scans images, printed text, handwriting, or an object, and converts it to a digital image. Common examples found in offices are variations of the desktop scanner where the document is placed on a glass window for scanning....
 is a device that optically scans images (printed text, handwriting, or an object) and converts it to a digital image which is transferred to a computer. Among other formats, flat, drum, and film scanners exist, and most of them support RGB color. They can be considered the successors of early telephotography input devices, which were able to send consecutive scan line
Scan line

A scan line is one line, or row, in a raster scanning pattern, such as a line on a cathode ray tube display of a television or computer.On older CRT screens the horizontal scan lines were visually discernible, even when viewed from a distance, as alternating colored lines and black lines....
s as analog
Analog signal

An analog or analogue signal is any continuous function Signal for which the time varying feature of the signal is a representation of some other time varying quantity, i.e analogous to another time varying signal....
 amplitude modulation
Amplitude modulation

Amplitude modulation is a technique used in electronic communication, most commonly for transmitting information via a radio carrier wave....
 signals through standard telephonic lines to appropriate receivers; such systems were in use in press
Press

selfref|For questions regarding Wikipedia, please visit the Wikimedia Foundation...
 since the 1920s to the mid 1990s. Color telephotographs were sent as three separated RGB filtered images consecutively.

Currently available scanners typically use charge-coupled device
Charge-coupled device

A charge-coupled device is an analog signal shift register that enables the transportation of analog signals through successive stages , controlled by a clock signal....
 (CCD) or contact image sensor
Contact Image Sensor

Contact Image Sensors are a relatively recent technological innovation in the field of optical that are rapidly replacing Charge-coupled device in low power and portable applications....
 (CIS) as the image sensor, whereas older drum scanners use a photomultiplier tube
Photomultiplier

Photomultiplier tubes , members of the class of vacuum tubes, and more specifically phototubes, are extremely sensitive detectors of light in the ultraviolet, visible light, and near-infrared ranges of the electromagnetic spectrum....
 as the image sensor. Early color film scanners used a halogen lamp
Halogen lamp

A halogen lamp is an Incandescent light bulb in which a tungsten filament is sealed into a compact transparent envelope filled with an inert gas, plus a small amount of halogen such as iodine or bromine....
 and a three-color filter wheel, so three exposures were needed to scan a single color image. Due to heating problems, the worst of them being the potential destruction of the scanned film, this technology was later replaced by non-heating light sources such as color LEDs.

Numeric representations


A color in the RGB color model is described 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
    Percentage

    In mathematics, a percentage is a way of expressing a number as a fraction of 100 . It is often denoted using the percent sign, "%". For example, 45% is equal to 45 / 100, or 0.45....
    , from 0% to 100%.
  • In computing, the component values are often stored as integer
    Integer

    The integers are natural numbers including 0 and their negative and non-negative numberss . They are numbers that can be written without a fractional or decimal component, and fall within the set ....
     numbers in the range 0 to 255, the range that a single 8-bit byte
    Byte

    A byte is a basic unit of measurement of Computer storage in computer science. In many computer architectures it is a Byte addressing memory address space....
     can offer (by encoding 256 distinct values).
  • High-end digital image equipment can deal with the integer range 0 to 65,535 for each primary color, by employing 16-bit
    16-bit

    16-bit architectureThe HP 2100#Descendants and variants , introduced in 1975, was the world's first 16-bit microprocessor.Prominent 16-bit processors include the PDP-11, Intel 8086, Intel 80286 and the WDC 65C816....
     words instead of 8-bit bytes.


For example, the full intensity 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)
Digital 16-bit per channel (65535, 0, 0)


In many environments, the component values within the ranges are not managed as linear (that is, the numbers are nonlinearly related to the intensities that they represent), as in digital camera
Digital camera

A digital camera is a camera that takes video or still photographs, or both, digitally by recording digital image via an electronics .Many compact digital still cameras can record sound and moving video as well as still photographs....
s and TV broadcasting and receiving due to gamma correction
Gamma correction

Gamma correction, gamma nonlinearity, gamma encoding, or often simply gamma, is the name of a nonlinear operation used to code and decode luminance or tristimulus values in video or still image systems....
, for example. Linear and nonlinear transformations are often dealt with via digital image processing
Digital image processing

Digital image processing is the use of computer algorithms to perform on digital images. As a subfield of digital signal processing, digital image processing has many advantages over analog image processing; it allows a much wider range of algorithms to be applied to the input data, and can avoid problems such as the build-up of noise and si...
. Representations with only 8 bits per component are considered sufficient if gamma encoding is used, but sometimes even 8-bit linear is used.

Geometric representation


See also RGB color space
RGB color space

An RGB color space is any additive color space based on the RGB color model. A particular RGB color space is defined by the three chromaticity of the red, green, and blue additive primaries, and can produce any chromaticity that is the triangle defined by those primary colors....


Since colors are usually defined by three components, not only in the RGB model, but also in other color models such as CIELAB
Lab color space

A Lab color space is a opponent process space with dimension L for lightness and a and b for the color-opponent dimensions, based on nonlinearly-compressed CIE XYZ color space coordinates....
 and Y'UV, among others, then a three-dimensional
Three-dimensional space

Three-dimensional space is a geometric model of the physical universe in which we live. The three dimensions are commonly called length, width, and depth , although any three mutually perpendicular directions can serve as the three dimensions....
 volume
Volume

The volume of any solid, liquid, plasma, vacuum or theoretical object is how much three-dimensional space it occupies, often quantified numerically....
 is described by treating the component values as ordinary cartesian coordinates
Cartesian coordinate system

In mathematics, the Cartesian coordinate system is used to determine each Point uniquely in a Plane through two numbers, usually called the x-coordinate or abscissa and the y-coordinate or ordinate of the point....
 in a euclidean space
Euclidean space

Around 300 Before Christ, the Ancient Greece mathematician Euclid undertook a study of relationships among distances and angles, first in a plane and then in space....
. For the RGB model, this is represented by a cube using non-negative values within a 0–1 range and assigning black to the origin at the vertex (0, 0, 0), and with increasing intensity values running along the three axis up to white at the vertex (1, 1, 1), diagonally opposite black.

An RGB triplet (r,g,b) represents the three-dimensional coordinate of the point of the given color within the cube or its faces or along its edges. This approach allows computations of the color similarity
Color difference

The difference or distance between two colors is a metric of interest in color science. It allows people to quantify a notion that would otherwise be described with adjectives, to the detriment of anyone whose work is color critical....
 of two given RGB colors by simply calculating the distance
Euclidean distance

In mathematics, the Euclidean distance or Euclidean metric is the "ordinary" distance between two points that one would measure with a ruler, which can be proven by repeated application of the Pythagorean theorem....
 between them: the shorter the distance, the higher the similarity. Out-of-gamut
Gamut

In color reproduction, including computer graphics and photography, the gamut, or color gamut , is a certain complete subset of colors....
 computations can be performed this way, too.

Digital representations

The RGB color model is the most common way to encode color in computing, and several different binary
Binary

Binary means composed of two parts or two pieces. It contrasts with Unary, Ternary, Quaternary , and so on.Binary may also refer to:* Binary option, also known as digital option OR all-or-nothing option...
 digital
Digital

A digital system uses discrete values, usually but not always symbolized numerically to represent information for input, processing, transmission, storage, etc....
 representations are in use. The main characteristic of all of them is the quantization
Quantization (signal processing)

In digital signal processing, quantization is the process of approximating a continuous range of values by a relatively small set of discrete symbols or integer values....
 of the possible values per component (technically a sample
Sampling (signal processing)

In signal processing, sampling is the reduction of a continuous signal to a discrete signal. A common example is the conversion of a sound wave to a sequence of sample ....
) by using only integer
Integer

The integers are natural numbers including 0 and their negative and non-negative numberss . They are numbers that can be written without a fractional or decimal component, and fall within the set ....
 numbers within some range, usually form 0 to a some power of two minus one (2n – 1) to fit them into some bit
Bit

A bit is a binary numeral system numerical digit, taking a value of either 0 or 1. Binary digits are a basic unit of information Computer data storage and transmission in digital computing and digital information theory....
 groupings.

As usual in computing, the values can be represented either in decimal and in hexadecimal
Hexadecimal

In mathematics and computer science, hexadecimal is a numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 09 to represent values zero to nine, and A, B, C, D, E, F to represent values ten to fifteen....
 notation as well, as is the case of HTML colors
Web colors

Web colors are colors used in designing world wide web pages, and the methods for describing and specifying those colors.Authors of web pages have a variety of options available for specifying colors for elements of web documents....
 text-encoding convention.

The 24-bit RGB representation

RGB values encoded in 24 bits per pixel
List of monochrome and RGB palettes

This list of monochrome and RGB palettes includes generic repertoires of colors to produce black-and-white and RGB color pictures by a computer's display Computer hardware, not necessarily the total number of such colors that can be simultaneously displayed in a given text or graphic mode of any machine....
 (bpp) are specified using three 8-bit unsigned integers (0 through 255) representing the intensities of red, green, and blue. This representation is the current mainstream standard representation for the so-called truecolor
Truecolor

Truecolor is a method of representing and storing graphical image information in an RGB color space such that a very large number of colors, shades, and hues can be displayed in an image, such as in high quality photographic images or complex graphics....
 and common color interchange in image file formats
Image file formats

Image file formats are standardized means of organizing and storing images. This entry is about digital image formats used to store photographic and other images; ....
 such as JPEG
JPEG

In computing, JPEG is a commonly used method of for photographic images. The degree of compression can be adjusted, allowing a selectable tradeoff between storage size and image quality....
 or TIFF. It allows more than 16 million different combinations (hence the term millions of colors some systems use for this mode), many of them indistinguishable to the human eye.

The following image shows the three "fully saturated" faces of a 24-bpp RGB cube, unfolded into a plane:

  • (0, 0, 0) is black
    Black

    Black is the color of objects that do not emit or reflection light in any part of the visible spectrum; they absorb all such frequencies of light....
  • (255, 255, 255) is white
    White

    White is a color, the Color vision#Physiology of color perception which is evoked by light that stimulates all three types of color sensitive cone cells in the human eye in near equal amount and with high brightness compared to the surroundings....
  • (255, 0, 0) is red
    Red

    Red is any of a number of similar colors evoked by light consisting predominantly of the longest wavelengths of light discernible by the human eye, in the wavelength range of roughly 625?740 Nanometer....
  • (0, 255, 0) is green
    Green

    Green is a color, the perception of which is evoked by light having a spectrum dominated by energy with a wavelength of roughly 520?570-Nanometre....
  • (0, 0, 255) is blue
    Blue

    Blue is a colour, the perception of which is evoked by light having a spectrum dominated by energy with a wavelength of roughly 440?490 Nanometre....
  • (255, 255, 0) is yellow
    Yellow

    Yellow is the color evoked by light that stimulates both the L and M cone cells of the retina about equally, but does not significantly stimulate the S cone cells; that is, light with much red and green but not very much blue....
  • (0, 255, 255) is cyan
    Cyan

    Cyan may be used as the name of any of a number of a range of colors in the blue/green part of the spectrum. In reference to the visible spectrum cyan is used to refer to the color obtained by mixing equal amounts of green and blue light or the removal of red from white light....
  • (255, 0, 255) is magenta
    Magenta

    Magenta is a purplish pink color evoked by lights with less power in yellowish-green wavelengths than in blue and red wavelengths . In light experiments, magenta can be produced by removing the lime-green wavelengths from white light....
yellow
(255,255,0)
green
(0,255,0)
cyan
(0,255,255)
red
(255,0,0)
Rgbr
blue
(0,0,255)
  red
(255,0,0)
magenta
(255,0,255)


The above definition uses a convention known as full-range RGB. Color values are also often scaled from and to the range 0.0 through 1.0, specially they are mapped from/to other color models and/or encodings.

The 256 levels of a primary usually do not represent equally spaced intensities, due to gamma correction
Gamma correction

Gamma correction, gamma nonlinearity, gamma encoding, or often simply gamma, is the name of a nonlinear operation used to code and decode luminance or tristimulus values in video or still image systems....
.

This representation cannot offer the exact mid point 127.5, nor other non-integer values, as byte
Byte

A byte is a basic unit of measurement of Computer storage in computer science. In many computer architectures it is a Byte addressing memory address space....
s do not hold fractional values, so these need to be rounded or truncated to a nearby integer value. For example, Microsoft
Microsoft

Microsoft Corporation is a multinational corporation computer technology corporation that develops, manufactures, licenses, and supports a wide range of computer software products for computing devices....
 considers the color "medium gray" to be the (128,128,128) RGB triplet in its default palette
List of software palettes

Computer systems that use an 4-bit or 8-bit pixel Color depth can display up to 16 or 256 colors simultaneously. Many personal computers in the early 1990s displayed at most 256 different colors, freely selected by software from their wider hardware's RGB color palette....
. The effect of such quantization (for every value, not only the midpoint) is usually not noticeable, but may build up in repeated editing operations or colorspace conversions.

Typically, RGB for digital video
Digital video

Digital video is a type of video recording system that works by using a digital rather than an analog signal video signal.The terms camera, video camera, and camcorder are used interchangeably in this article....
 is not full range. Instead, video RGB uses a convention with scaling and offsets such that (16, 16, 16) is black
Black

Black is the color of objects that do not emit or reflection light in any part of the visible spectrum; they absorb all such frequencies of light....
, (235, 235, 235) is white
White

White is a color, the Color vision#Physiology of color perception which is evoked by light that stimulates all three types of color sensitive cone cells in the human eye in near equal amount and with high brightness compared to the surroundings....
, etc. For example, these scalings and offsets are used for the digital RGB definition in the CCIR 601 standard.

Beyond the 24-bit RGB


32-bit graphic mode
The so-called 32 bpp display graphic mode is identical in precision to the 24 bpp mode; there are still only eight bits per component, and the eight extra bits are often not used at all. The reason for the existence of the 32 bpp mode is the higher speed at which most modern 32-bit
32-bit

The range of integer values that can be stored in 32 bits is 0 through 4,294,967,295 or -2,147,483,648 through 2,147,483,647 using two's complement encoding....
 (and better) hardware can access data that is aligned to byte
Byte

A byte is a basic unit of measurement of Computer storage in computer science. In many computer architectures it is a Byte addressing memory address space....
 addresses evenly divisible by a power of two, compared to data not so aligned.

32-bit graphic mode with simple video overlay
Some graphics hardware allows the unused byte into the 32-bit mode to be used as an 8-bit paletted
Palette (computing)

In computer graphics, a palette is either a given, finite set of colors for the management of digital images , or a small on-screen graphical element for choosing from a limited set of choices, not necessarily colors ....
 overlay
Video overlay

Video overlay is any technique used to display a video window on a computer display while bypassing the chain of Central processing unit -> graphics card -> computer monitor....
. A certain palette entry (often 0 or 255) is designated as being transparent, i.e., where the overlay is this value the truecolor image is shown. Otherwise the overlay value is looked up in the palette and used. This allows for GUI
Gui

Gui or guee is a generic term to refer to grillinged dishes in Korean cuisine. These most commonly have meat or fish as their primary ingredient, but may in some cases also comprise grilled vegetables or other vegetarian ingredients....
 elements (such as menus or the mouse cursor) or information to be overlayed over a truecolor image without modifying it. When the overlay needs to be removed, it is simply cleared to the transparent value and the truecolor image is displayed again. This feature was often found on graphics hardware for Unix
Unix

Unix is a computer operating system originally developed in 1969 by a group of American Telephone & Telegraph employees at Bell Labs, including Ken Thompson , Dennis Ritchie, Douglas McIlroy, and Joe Ossanna....
 workstations in the 90s and later on some PC graphics cards (most notably those by Matrox
Matrox

Matrox Electronic Systems Ltd is a Canada company based in Dorval, Quebec, which produces graphics card components and equipment for personal computers....
). However, PC graphics cards (and the systems they are used in) now have plentiful memory to use as a backing store and this feature has mostly disappeared.

32-bit RGBA (RGB plus alpha channel)
With the need for compositing images came a variant of 24-bit RGB which includes an extra 8-bit channel for transparency, thus resulting also in a 32-bit format. The transparency channel is commonly known as the alpha channel
Alpha compositing

In computer graphics, alpha compositing is the process of combining an image with a background to create the appearance of partial transparency....
, so the format is named RGBA
RGBA color space

RGBA stands for Red Green Blue Alpha. While it is sometimes described as a color space, it is actually simply a use of the RGB color model, with extra information....
. Note again that since it does not change anything in the RGB model, RGBA is not a distinct color model, it is only a representation that integrates transparency information along with the color information. This extra channel allows for alpha blending of the image over another, and is a feature of the PNG format.

48-bit RGB
High precision color management typically uses up to 16 bits per component, resulting in 48 bpp. This makes it possible to represent 65,536 tones of each color component instead of 256. This is primarily used in professional image editing, like Adobe Photoshop for maintaining greater precision when a sequence of more than one image filtering algorithms is used on the image. With only 8 bit per component, rounding errors tend to accumulate with each filtering algorithm that is employed, distorting the end result. Sometimes also called 16-bit mode due to the precision by component, not to be confused with 16-bit Highcolor which is a more limited representation (see below).

Limited representations below 24-bit RGB


16-bit RGB (Highcolor)
A 16-bit mode known as Highcolor, in which there are either 5 bits per color, called 555 mode
List of monochrome and RGB palettes

This list of monochrome and RGB palettes includes generic repertoires of colors to produce black-and-white and RGB color pictures by a computer's display Computer hardware, not necessarily the total number of such colors that can be simultaneously displayed in a given text or graphic mode of any machine....
 (32,768 total colors), or the same with an extra bit for green (because the green component contributes most to the brightness of a color in the human eye), called 565 mode
List of monochrome and RGB palettes

This list of monochrome and RGB palettes includes generic repertoires of colors to produce black-and-white and RGB color pictures by a computer's display Computer hardware, not necessarily the total number of such colors that can be simultaneously displayed in a given text or graphic mode of any machine....
 (65,535 colors). (In general, a good RGB representation needs 1 bit more for red than blue and 1 more bit for green, but this can not be fully achieved within a 16-bit word.) This was the high-end for some display adapters for personal computer
Personal computer

A personal computer is any general-purpose computer whose original sales price, size, and capabilities make it useful for individuals, and which is intended to be operated directly by an end user, with no intervening computer operator....
s during the 1990s, but today is considered slightly obsolete in favour of the 24 or 32 bpp graphic modes. It is still in use in many devices with color screens as cell phones, digital camera
Digital camera

A digital camera is a camera that takes video or still photographs, or both, digitally by recording digital image via an electronics .Many compact digital still cameras can record sound and moving video as well as still photographs....
s, personal digital assistant
Personal digital assistant

A personal digital assistant is a handheld computer, also known as a palmtop computer. Newer PDAs also have both color screens and audio capabilities, enabling them to be used as mobile phones, , web browsers, or portable media players....
s (PDA) and portable videogame consoles.

RGB arrangements for 8-bit indexed color

Display adapters and image file formats using indexed-color techniques limit the simultaneously available colors per image up to 256, 8 bits per pixel. The selected colors are arranged into a palette
Palette (computing)

In computer graphics, a palette is either a given, finite set of colors for the management of digital images , or a small on-screen graphical element for choosing from a limited set of choices, not necessarily colors ....
, and the actual image pixel
Pixel

In digital imaging, a pixel is the smallest item of information in an image. Pixels are normally arranged in a 2-dimensional grid, and are often represented using dots, squares, or rectangles....
s values do not represent RGB triplets, but mere indices into the palette, which in turn stores the 24-bit RGB triplets for every color in the image, so colors are addressed indirectly.

Every image can have its own color selection (or adaptive palette
List of software palettes

Computer systems that use an 4-bit or 8-bit pixel Color depth can display up to 16 or 256 colors simultaneously. Many personal computers in the early 1990s displayed at most 256 different colors, freely selected by software from their wider hardware's RGB color palette....
) when indexed color is employed. But this scheme has the inconvenience that two or more indexed-color images with incompatible palettes cannot be properly displayed simultaneously where the 256-color limitation is imposed by the system's hardware.

One solution is to use an intermediate master palette
Palette (computing)

In computer graphics, a palette is either a given, finite set of colors for the management of digital images , or a small on-screen graphical element for choosing from a limited set of choices, not necessarily colors ....
 which comprises a full RGB selection with limited levels to the red, green, and blue components, in order to fit it at all within 256 color entries.

Usual limited RGB repertoires include 6×6×6 levels with 216 combinations (the Web colors
Web colors

Web colors are colors used in designing world wide web pages, and the methods for describing and specifying those colors.Authors of web pages have a variety of options available for specifying colors for elements of web documents....
 case), 6×7×6 levels with 252 combinations, 6×8×5 levels with 240 combinations and 8×8×4 levels with the full 256 combinations (see RGB arrangements
List of software palettes

Computer systems that use an 4-bit or 8-bit pixel Color depth can display up to 16 or 256 colors simultaneously. Many personal computers in the early 1990s displayed at most 256 different colors, freely selected by software from their wider hardware's RGB color palette....
 for samples).

3-bit RGB
The minimum RGB binary representation is 3-bit RGB
List of monochrome and RGB palettes

This list of monochrome and RGB palettes includes generic repertoires of colors to produce black-and-white and RGB color pictures by a computer's display Computer hardware, not necessarily the total number of such colors that can be simultaneously displayed in a given text or graphic mode of any machine....
, one bit per component. Typical for early color terminal
Computer terminal

A computer terminal is an electronic or electromechanical computer hardware device that is used for entering data into, and displaying data from, a computer or a computing system....
s in the 1970s, it is still used today with the Teletext
Teletext

Teletext is a television information retrieval service developed in the United Kingdom in the early 1970s. It offers a range of text-based information, typically including national, international and sporting news, weather and TV schedules....
 TV retrieval service.

Colors in web-page design

Colors used in web-page design are commonly specified using RGB; see web colors
Web colors

Web colors are colors used in designing world wide web pages, and the methods for describing and specifying those colors.Authors of web pages have a variety of options available for specifying colors for elements of web documents....
 for an explanation of how colors are used in HTML
HTML

HTML, an Acronym and initialism of HyperText Markup Language, is the predominant markup language for Web pages. It provides a means to describe the structure of text-based information in a document?by denoting certain text as links, headings, paragraphs, lists, and so on?and to supplement that text with interactive forms, embedded '...
 and related languages. Initially, the limited color depth of most video hardware led to a limited color palette of 216 RGB colors, defined by the Netscape Color Cube. However, with the predominance of 24-bit displays, the use of the full 16.7 million colors of the HTML RGB color code no longer poses problems for most viewers.

In short, the web-safe color
Web colors

Web colors are colors used in designing world wide web pages, and the methods for describing and specifying those colors.Authors of web pages have a variety of options available for specifying colors for elements of web documents....
 palette consists of the 216 (63) combinations of red, green, and blue where each color can take one of six values (in hexadecimal
Hexadecimal

In mathematics and computer science, hexadecimal is a numeral system with a radix, or base, of 16. It uses sixteen distinct symbols, most often the symbols 09 to represent values zero to nine, and A, B, C, D, E, F to represent values ten to fifteen....
): #00, #33, #66, #99, #CC or #FF (based on the 0 to 255 range for each value discussed above). These hexadecimal values = 0, 51, 102, 153, 204, 255 in decimal, which = 0%, 20%, 40%, 60%, 80%, 100% in terms of intensity. This seems fine for splitting up 216 colors into a cube of dimension 6. However, lacking gamma correction
Gamma correction

Gamma correction, gamma nonlinearity, gamma encoding, or often simply gamma, is the name of a nonlinear operation used to code and decode luminance or tristimulus values in video or still image systems....
, the perceived intensity on a standard 2.5 gamma CRT / LCD is only: 0%, 2%, 10%, 28%, 57%, 100%. See the actual web safe color
Web colors

Web colors are colors used in designing world wide web pages, and the methods for describing and specifying those colors.Authors of web pages have a variety of options available for specifying colors for elements of web documents....
 palette for a visual confirmation that the majority of the colors produced are very dark, or see for a side by side comparison of proper colors next to their equivalent lacking proper gamma correction.

The RGB color model for HTML was formally adopted as an Internet standard in , however it had been in use for some time before that.

Color management

Proper reproduction of colors, especially in professional environments, requires color management of all the devices involved in the production process, many of them using RGB. Color management results in several transparent conversions between device-independent and device-dependent color space
Color space

A color model is an abstract mathematical model describing the way colors can be represented as tuples of numbers, typically as three or four values or color components ....
s (RGB and others, as CMYK
CMYK color model

CMYK is a subtractive color color model, used in color printing, also used to describe the printing process itself. Though it varies by print house, press operator, press manufacturer and press run, ink is typically applied in the order of the abbreviation....
 for color printing) during a typical production cycle, in order to ensure color consistency throughout the process. Along with the creative processing, such interventions on digital images can damage the color accuracy and image detail, especially where the gamut
Gamut

In color reproduction, including computer graphics and photography, the gamut, or color gamut , is a certain complete subset of colors....
 is reduced. Professional digital devices and software tools allow for 48 bpp (bits per pixel) images to be manipulated (16 bits per channel), to minimize any such damage.

ICC-compliant applications, such as Adobe Photoshop
Adobe Photoshop

Adobe Photoshop, or simply Photoshop, is a Graphics software developed and published by Adobe Systems. It is the current and primary Market dominance for commercial Raster graphics and manipulation, and is the flagship product of Adobe Systems....
, use either the Lab color space
Lab color space

A Lab color space is a opponent process space with dimension L for lightness and a and b for the color-opponent dimensions, based on nonlinearly-compressed CIE XYZ color space coordinates....
 or the CIE 1931 color space
CIE 1931 color space

In the study of the perception of color, one of the first mathematically defined color spaces was the CIE 1931 XYZ color space , created by the International Commission on Illumination in 1931....
 as a Profile Connection Space when translating between color spaces.

RGB model and luminance–chrominance formats relationship

All luminance–chrominance
Chrominance

Chrominance , is the signal used in video systems to convey the color information of the picture, separately from the accompanying luma signal....
 formats used in the different TV and video standards such as YIQ
YIQ

YIQ is the color space used by the NTSC color TV system, employed mainly in North America and Central America, and Japan. In the United States, currently federally mandated for analog over-the-air TV broadcasting as shown in this excerpt of the current FCC rules and regulations part 73 "TV transmission standard":...
 for NTSC
NTSC

NTSC is the analog television system used in most of the Americas, Japan, South Korea, Taiwan, the Philippines, Burma, and some Pacific island nations and territories ....
, YUV
YUV

Y'UV is a color space typically used as part of a color image pipeline. It encodes a color image or video taking human perception into account, allowing reduced bandwidth for chrominance components, thereby typically enabling transmission errors or compression artifacts to be more efficiently masked by the human perception than using a "d...
 for PAL
PAL

PAL, short for Phase Alternating Line, is a color-encoding system used in broadcast television systems in large parts of the world. Other common analog television systems are SECAM and NTSC....
, YDBDR
YDbDr

YDbDr is the colour space used in the S?CAM colour television broadcasting standard, which is used in France and some countries of the former Eastern Bloc....
 for SECAM
SECAM

SECAM, also written S?CAM , is an analog television system first used in France.A team led by Henri de France working at Compagnie Fran?aise de T?l?vision invented SECAM....
, and YPBPR
YPbPr

YPBPR is a color space used in video electronics, in particular in reference to component video cables. YPBPR is the analog signal version of the YCbCr color space; the two are numerically equivalent, but YPBPR is designed for use in analogue electronics whereas YCB
 for component video
Component video

Component video is a video signal that has been split into two or more components. In popular use, it refers to a type of Analog signal video information that is transmitted or stored as three separate signals....
 use color difference signals, by which RGB color images can be encoded for broadcasting/recording and later decoded into RGB again to display them. These intermediate formats were needed for compatibility with pre-existent black-and-white TV formats. Also, those color difference signals need lower data bandwidth compared to full RGB signals.

Similarly, current high-efficiency digital color image data compression
Data compression

In computer science and information theory, data compression or source coding is the process of encoding information using fewer bits than an code representation would use through use of specific encoding schemes....
 schemes such as JPEG
JPEG

In computing, JPEG is a commonly used method of for photographic images. The degree of compression can be adjusted, allowing a selectable tradeoff between storage size and image quality....
 and MPEG store RGB color internally in YCBCR
YCbCr

YCbCr or Y'CbCr is a family of color spaces used as a part of the Color image pipeline in video and digital photography systems. Y' is the Luma component and Cb and Cr are the blue-difference and red-difference chrominance components....
 format, a digital luminance-chrominance format based on YPBPR. The use of YCBCR also allows to perform lossy subsampling
Chroma subsampling

Chroma subsampling is the practice of encoding images by implementing less resolution for Chrominance information than for luma information. It is used in many video encoding schemes?both analog and digital?and also in JPEG encoding....
 with the chroma channels (typically to 4:2:2 or 4:1:1 ratios), which it aids to reduce the resultant file size.

See also

  • Color banding
    Colour banding

    Colour banding is a problem of inaccurate colour presentation in computer graphics. While in 24 bit colour modes, 8 bits per channel should be enough to render images in the full Visible spectrum, in some cases there is a risk of producing abrupt changes between shades of the same colour....
  • SCART
    SCART

    SCART is a France-originated standard and associated 21-pin connector for connecting audio-visual equipment together. It is also known as P?ritel , 21-pin EuroSCART and Euroconnector....
     connector
  • Color theory
    Color theory

    In the visual arts, color theory is a body of practical guidance to color mixing and the visual impact of specific color combinations. Although color theory principles first appear in the writings of Leone Battista Alberti and the notebooks of Leonardo da Vinci , a tradition of "colory theory" begins in the 18th century, initially within a...
  • List of palettes
    List of palettes

    This article is a list of the palette s for notable computer graphics, terminals and video game consoles hardware.Only a sample and the palette's name are given here....


External links