Standard RGB  
Abbreviation  sRGB 

Native name 

Status  Published 
First published  October 18, 1999  ^{[1]}
Organization  IEC^{[1]} 
Committee  TC/SC: TC 100/TA 2^{[1]} 
Domain  Color space, color model 
Website  webstore 
sRGB is a standard RGB (red, green, blue) color space that HP and Microsoft created cooperatively in 1996 to use on monitors, printers, and the Web.^{[2]} It was subsequently standardized by the International Electrotechnical Commission (IEC) as IEC 6196621:1999.^{[1]} sRGB is the current defined standard colorspace for the web, and it is usually the assumed colorspace for images that are neither tagged for a colorspace nor have an embedded color profile.
sRGB uses the same color primaries and white point as ITUR BT.709, the standard for HDTV.^{[3]} However sRGB does not use the BT.709 nonlinear transfer function (sometimes informally referred to as gamma). Instead the sRGB transfer function was created for computer processing convenience, as well as being compatible with the era's CRT displays. An associated viewing environment is designed to match typical home and office viewing conditions. sRGB essentially codifies the display specifications for the Windowsbased computers and monitors in use at that time.
An amendment of the IEC 6196621 standard document that defines sRGB includes the definition of a number of variants including sYCC, which is a Y′Cb′Cr′ lumachromachroma color representation of sRGB colors with an extended range of values in the RGB domain (supporting negative values in the RGB domain).^{[4]}
Chromaticity  Red  Green  Blue  White point 

x  0.6400  0.3000  0.1500  0.3127 
y  0.3300  0.6000  0.0600  0.3290 
Y  0.2126  0.7152  0.0722  1.0000 
sRGB defines the chromaticities of the red, green, and blue primaries, the colors where one of the three channels is nonzero and the other two are zero. The gamut of chromaticities that can be represented in sRGB is the color triangle defined by these primaries. As with any RGB color space, for nonnegative values of R, G, and B it is not possible to represent colors outside this triangle, which is well inside the range of colors visible to a human with normal trichromatic vision.
The primaries come from HDTV (ITUR BT.709), which are somewhat different from those for older color TV systems (ITUR BT.601). These values were chosen to reflect the approximate color of consumer CRT phosphors at the time of its design. Since flatpanel displays at the time were generally designed to emulate CRT characteristics, the values also reflected prevailing practice for other display devices as well.^{[1]}
The IEC specification indicates a reference display with a nominal gamma of 2.2, intended to be similar to the gamma response of CRT displays. The ability to directly display sRGB images on a CRT without any lookup greatly helped sRGB's adoption. Gamma also convienently places more numbers near the black, reducing visible quantization artifacts.
The standard further defines a nonlinear electrooptical transfer function (EOTF), which exactly defines the relationship between the output intensity of the primaries and the image data as stored. This curve is a slight tweaking of the simple Gamma 2.2 function.^{[5]} A linear section is near zero, in order to avoid an infinite or zero slope that a gamma curve has. This is spliced to a curved section designed so the overall function is very close to a gamma 2.2 function. In order to do this a formula using a higher exponent (2.4 in this case) is necessary. The instantaneous gamma (the slope when plotted on a log:log scale) varies from 1 in the linear section to 2.4 at maximum intensity, with a median value being close to 2.2.
In practice a pure gamma curve may be used with sRGB data with very little difference, this is referred to as "simple sRGB" by Adobe, and also what happens when it is displayed unchanged on a CRT.
A straight line that passes through (0,0) is , and a gamma curve that passes through (1,1) is
If these are joined at the point (X,X/Φ) then:
If the slopes match at this point, then the derivatives must also be equal:
We now have two equations. If we take the two unknowns to be X and Φ then we can solve to give
The values A = 0.055 and Γ = 2.4 were chosen^{[how?]} so the curve closely resembled the gamma2.2 curve. This gives X ≈ 0.0392857, Φ ≈ 12.9232102. These values, rounded to X = 0.03928, Φ = 12.92321 sometimes describe sRGB conversion.^{[6]}
Draft publications by sRGB's creators further rounded Φ = 12.92,^{[2]} resulting in a small discontinuity in the curve. Some authors adopted these incorrect values, in part because the draft paper was freely available and the official IEC standard is behind a paywall.^{[7]} For the standard, the rounded value of Φ was kept and X was recomputed as 0.04045 to make the curve continuous, resulting in a slope discontinuity from 1/12.92 below the intersection to 1/12.70 above.
Parameter  Value 

Screen luminance level  80 cd/m^{2} 
Illuminant white point  x = 0.3127, y = 0.3290 (D65) 
Image surround reflectance  20% (~medium gray) 
Encoding ambient illuminance level  64 lux 
Encoding ambient white point  x = 0.3457, y = 0.3585 (D50) 
Encoding viewing flare  1.0% 
Typical ambient illuminance level  200 lux 
Typical ambient white point  x = 0.3457, y = 0.3585 (D50) 
Typical viewing flare  5.0% 
The sRGB specification assumes a dimly lit encoding (creation) environment with an ambient correlated color temperature (CCT) of 5003 K. This differs from the CCT of the illuminant (D65). Using D50 for both would have made the white point of most photographic paper appear excessively blue.^{[8]} The other parameters, such as the luminance level, are representative of a typical CRT monitor.
For optimal results, the ICC recommends using the encoding viewing environment (i.e., dim, diffuse lighting) rather than the lessstringent typical viewing environment.^{[2]}
The sRGB component values , , are in the range 0 to 1. When represented digitally as 8bit numbers, these color component values are in the range of 0 to 255, and should be divided (in a floating point representation) by 255 to convert to the range of 0 to 1.
where is , , or .
These gammaexpanded values (sometimes called "linear values" or "linearlight values") are multiplied by a matrix to obtain CIE XYZ:
This is actually the matrix for BT.709 primaries, not just for sRGB, the second row corresponds to the BT.7092 luma coefficients.
The CIE XYZ values must be scaled so that the Y of D65 ("white") is 1.0 (X = 0.9505, Y = 1.0000, Z = 1.0890). This is usually true but some color spaces use 100 or other values (such as in CIELAB, when using specified white points).
The first step in the calculation of sRGB from CIE XYZ is a linear transformation, which may be carried out by a matrix multiplication. (The numerical values below match those in the official sRGB specification,^{[1]}^{[9]} which corrected small rounding errors in the original publication^{[2]} by sRGB's creators, and assume the 2° standard colorimetric observer for CIE XYZ.^{[2]})
These linear RGB values are not the final result; gamma correction must still be applied. The following formula transforms the linear values into sRGB:
where is , , or .
These gammacompressed values (sometimes called "nonlinear values") are usually clipped to the 0 to 1 range. This clipping can be done before or after the gamma calculation, or done as part of converting to 8 bits. If values in the range 0 to 255 are required, e.g. for video display or 8bit graphics, the usual technique is to multiply by 255 and round to an integer.
Due to the standardization of sRGB on the Internet, on computers, and on printers, many low to mediumend consumer digital cameras and scanners use sRGB as the default (or only available) working color space. However, consumerlevel CCDs are typically uncalibrated, meaning that even though the image is being labeled as sRGB, one can't conclude that the image is coloraccurate sRGB.
If the color space of an image is unknown and it is an 8 bit image format, sRGB is usually the assumed default, in part because color spaces with a larger gamut need a higher bit depth to maintain a low color error rate (∆E). An ICC profile or a look up table may be used to convert sRGB to other color spaces. ICC profiles for sRGB are widely distributed, and the ICC distributes several variants of sRGB profiles,^{[10]} including variants for ICCmax, version 4, and version 2. Version 4 is generally recommended, but version 2 is still commonly used and is the most compatible with other software including browsers. Version 2 of the ICC profile specification does not officially support piecewise parametric curve encoding ("para"), though version 2 does support simple gamma curves.^{[10]} Nevertheless, lookup tables are more commonly used as they are computationally more efficient.^{[citation needed]} Even when parametric curves are used, software will often reduce to a runtime lookup table for efficient processing.^{[citation needed]}
As the sRGB gamut meets or exceeds the gamut of a lowend inkjet printer, an sRGB image is often regarded as satisfactory for home printing. sRGB is sometimes avoided by highend print publishing professionals because its color gamut is not big enough, especially in the bluegreen colors, to include all the colors that can be reproduced in CMYK printing. Images intended for professional printing via a fully colormanaged workflow (e.g. prepress output) sometimes use another color space such as Adobe RGB (1998), which accommodates a wider gamut. Such images used on the Internet may be converted to sRGB using color management tools that are usually included with software that works in these other color spaces.
The two dominant programming interfaces for 3D graphics, OpenGL and Direct3D, have both incorporated support for the sRGB gamma curve. OpenGL supports textures with sRGB gamma encoded color components (first introduced with EXT_texture_sRGB extension,^{[11]} added to the core in OpenGL 2.1) and rendering into sRGB gamma encoded framebuffers (first introduced with EXT_framebuffer_sRGB extension,^{[12]} added to the core in OpenGL 3.0). Correct mipmapping and interpolation of sRGB gamma textures has direct hardware support in texturing units of most modern GPUs (for example nVidia GeForce 8 performs conversion from 8bit texture to linear values before interpolating those values), and does not have any performance penalty.^{[13]}
Amendment 1 to IEC 6196621:1999, approved in 2003, includes the definition of a Y′Cb′Cr′ color representation called sYCC, which is based on sRGB except for supporting negative values of the R, G and B components and thus allowing for an extendedgamut. Although the RGB color primaries are based on BT.709, the equations for transformation from sRGB to sYCC and vice versa are based on BT.601 instead of BT.709.^{[4]}
The amendment describes how to apply the gamma correction to negative values, by applying −f(−x) when x is negative (and f is the sRGB↔linear functions described above), as part of the Y′Cb′Cr′ definition. This is also used by scRGB.
The amendment also recommends a higherprecision XYZ to sRGB matrix using seven decimal points, to more accurately invert the sRGB to XYZ matrix (which remains at the precision shown above):
Additionally, the amendment contains an extendedgamut encoding for sRGB called bgsRGB and a YCC transformation for it called bgsYCC.^{[4]}
Why Calibrate Monitor to D65 When Light Booth is D50