sRGB

On this page 7

sRGB is a standard RGB color space that defines exactly which red, green and blue primaries, which white point and which tone curve a set of RGB numbers refers to. In photography it is the default color space for the web, smartphones, consumer monitors and most online print labs, so an image encoded in sRGB looks predictable on the widest range of devices.

Within the topic of Color & white balance, sRGB sits at the output end of the chain: white balance decides which colors the scene had, and the color space decides how those colors are written down as numbers in the final file. Choosing sRGB is therefore a decision about compatibility, not about how the camera sees the scene.

How sRGB defines color numerically

sRGB turns three numbers into a specific color by fixing three primaries, a white point and a transfer function. It was created in the mid-1990s for CRT monitors and the early web, and it was later formalized as the international standard IEC 61966-2-1. Its primaries are the same as those of the ITU-R BT.709 high-definition video standard, which is why sRGB and HD video share a similar color range.

The white point is D65, a daylight white of about 6500 K. The transfer function is a piecewise curve: a short linear segment near black followed by a power segment with an exponent of 2.4, which together behave much like a simple gamma of about 2.2. This curve spends more code values on dark tones, where human vision is most sensitive, so an 8-bit sRGB file with 256 levels per channel shows smooth gradients in most scenes.

The table below summarizes the parameters that make a file sRGB rather than any other RGB encoding.

ParametersRGB valueWhat it controls
Red primaryx 0.640, y 0.330Most saturated red the space can express
Green primaryx 0.300, y 0.600Most saturated green, the main gamut limit
Blue primaryx 0.150, y 0.060Most saturated blue
White pointD65, about 6500 KWhich RGB triple counts as neutral white
Transfer curvePiecewise, close to gamma 2.2How code values map to brightness
Typical bit depth8 bits per channelNumber of tonal steps per channel
Core parameters of the sRGB color space

The sRGB gamut and its limits

The color gamut of sRGB is the triangle formed by its three primaries, and it covers only roughly a third of all colors humans can see when plotted on a standard chromaticity diagram. The space is especially limited in saturated cyans and greens, and somewhat limited in deep oranges and purples.

Many real subjects stay inside this gamut: skin tones, most foliage, overcast skies and typical interiors. Problems appear with intense flowers, sunset clouds, stage lighting, neon signs and tropical water. When such colors are converted to sRGB, they must be clipped or compressed to the nearest color the space can hold, which flattens texture inside saturated areas. This is called gamut clipping, and it is the main practical cost of working in sRGB.

sRGB compared with Adobe RGB and ProPhoto RGB

sRGB is the smallest of the three color spaces photographers meet most often, and each larger space trades compatibility for range. Adobe RGB extends the green and cyan region, which matters mainly for printing on wide-gamut inkjet printers. ProPhoto RGB is so large that some of its primaries lie outside visible color, so it is used as an editing space for raw files rather than as a delivery format.

Color spaceRelative gamutTypical roleMain risk
sRGBSmallWeb, phones, social media, most labsClipping of saturated colors
Adobe RGBMedium, wider greens and cyansPrinting, wide-gamut monitorsDull colors in apps without color management
ProPhoto RGBVery largeEditing raw files at 16 bitsBanding at 8 bits, wrong colors if untagged
Display P3Medium, wider reds and greensModern phones, tablets and laptopsInconsistent support outside managed apps
How sRGB compares with wider RGB color spaces

A wider space is not automatically better. An image that contains only sRGB colors gains nothing from a larger container, and an 8-bit file in a very wide space spreads its 256 levels over a bigger range, which increases the risk of visible banding in skies and gradients.

Where sRGB fits in a photographic workflow

In practice, sRGB is applied at two points: in the camera when it creates JPEG files, and in the editor when a finished image is exported for delivery. A raw file has no color space of its own; the color space setting in the camera menu affects only the embedded preview and any JPEGs, while the raw converter decides the working space later.

The safest workflow keeps the widest useful data during editing and converts to sRGB only at the end. The conversion should be done through the editor’s export or Convert to Profile function, never by simply assigning a different profile, because assigning a profile reinterprets the numbers and shifts every color.

SituationRecommended spaceReason
Website, social media, messagingsRGBUnmanaged browsers and apps assume sRGB
JPEG straight from the camerasRGBFiles are usually shared without editing
Raw editingProPhoto RGB or a wide working spaceKeeps saturated colors until the final export
Fine art inkjet printAdobe RGB or the printer profilePrinter may reproduce colors beyond sRGB
Consumer photo labsRGB unless the lab states otherwiseMany lab workflows expect sRGB files
Choosing sRGB or a wider space by situation

Every exported file should carry an embedded ICC profile or at least an EXIF color space tag. Without it, color-managed software must guess, and most software then assumes sRGB anyway, which is another reason sRGB is the safe default.

Common mistakes with sRGB

Most color problems blamed on sRGB come from mismatched or missing profiles rather than from the space itself. The table lists frequent symptoms and their causes.

SymptomLikely causeFix
Dull, desaturated colors onlineAdobe RGB file shown as sRGBConvert to sRGB before export
Oversaturated, garish colorssRGB file shown on a wide-gamut screen without managementUse color-managed viewing software
Banding in skies8-bit file in a very wide spaceEdit at 16 bits, export to sRGB at the end
Colors shift after exportProfile assigned instead of convertedUse Convert to Profile
Print looks darker than screenMonitor too bright, not a color space problemCalibrate the display and soft proof
Symptoms of color space errors and how to fix them
  • Do not judge sRGB on an uncalibrated monitor, because the display error is often larger than any color space difference.
  • Do not upscale a small space: converting an sRGB JPEG to Adobe RGB cannot restore colors that were already clipped.
  • Check the white balance first, since a color cast is a white balance problem and survives every color space conversion.

The simple explanation

A digital photo is stored as numbers, and those numbers only become colors when everyone agrees what they mean. sRGB is that shared agreement for the everyday world of screens, phones and the internet.

Think of it as a standard box of crayons. It does not contain every possible color, so a very vivid flower may have to be drawn with the nearest crayon in the box. In return, nearly every device owns the same box, so the picture looks almost the same wherever it is viewed. The key idea is simple: use sRGB when an image leaves the editor for screens or a regular photo lab.

How it is used in practice

A travel photographer shoots raw files of a turquoise lagoon and a market full of saturated fabrics. She edits them in a wide working space at 16 bits, where the intense cyans in the water remain intact, and she prepares two outputs. For a gallery print on a wide-gamut inkjet printer, she exports a 16-bit TIFF in Adobe RGB and soft proofs it with the paper profile.

For her online portfolio and social media, she exports 8-bit JPEGs converted to sRGB with the profile embedded. Before export she enables a gamut warning, sees that part of the lagoon falls outside sRGB, and lowers saturation in that area slightly so the water keeps its texture instead of becoming a flat patch. The result is consistent color across phones, laptops and browsers, while the print still shows the richer cyans the printer can reproduce.