Sub topic 6
Choosing a working space
This chapter assumes you know what an ICC profile is, what gamut means, and the difference between an RGB image mode and a profile attached to it. It also assumes you can open a colour settings dialog in an editor such as Photoshop or Affinity Photo. Embedding, assigning and converting get their own chapter, so here we only decide which RGB space to work in.
What a working space is
A working space is the RGB profile an editor uses to interpret and store your pixel values while you edit. It is a matrix-and-curve profile with three parts:
- Primaries: the red, green and blue that define the corners of its gamut triangle.
- White point: the colour of RGB 255, 255, 255.
- Tone curve: how numbers map to brightness.
Because it is not tied to one device, it works as a neutral container. Your display profile is applied afterwards, only to show you the result.
The choice matters because pixels outside the working space's gamut are clipped when they are stored. Clipped colour cannot be recovered later. Two spaces with the same pixel numbers also decode to different colours.
The three common candidates
| Space | Primaries | White point | Tone curve | Typical use |
|---|---|---|---|---|
| sRGB | Moderate gamut, close to many monitors | D65 | Approx. 2.2 (piecewise) | Web, office, most consumer devices |
| Adobe RGB (1998) | Same red and blue as sRGB, greener green | D65 | Gamma 2.2 | Photography and print preparation |
| ProPhoto RGB | Very wide, with a blue primary that is not a real colour | D50 | Gamma 1.8 | Raw photo editing at 16 bits |
You can estimate how much larger each gamut is by measuring the triangle each space's primaries make on the CIE xy chromaticity diagram. This is only a rough measure, because the xy diagram does not space colours evenly for human vision. The script below uses the published primaries.
PRIMARIES = {
"sRGB": [(0.64, 0.33), (0.30, 0.60), (0.15, 0.06)],
"Adobe RGB": [(0.64, 0.33), (0.21, 0.71), (0.15, 0.06)],
"ProPhoto RGB": [(0.7347, 0.2653), (0.1596, 0.8404), (0.0366, 0.0001)],
}
def triangle_area(points):
(x1, y1), (x2, y2), (x3, y3) = points
return abs(x1 * (y2 - y3) + x2 * (y3 - y1) + x3 * (y1 - y2)) / 2
base = triangle_area(PRIMARIES["sRGB"])
for name, pts in PRIMARIES.items():
area = triangle_area(pts)
print(f"{name:13s} area {area:.4f} ratio to sRGB {area / base:.2f}")It prints a ratio of about 1.35 for Adobe RGB and about 2.5 for ProPhoto RGB. Adobe RGB's extra area is mostly in cyan-green, which is where sRGB falls short of many CMYK press conditions.
What each space does well and badly
sRGB
sRGB is the safe default for anything that will appear on screens you do not control, because browsers and most devices assume it when no profile is present. It is a weak working space for print. Saturated cyans, some greens and some yellows that a coated press can print are outside it, so they are clipped before you ever reach the print conversion.
Adobe RGB
Adobe RGB contains most of the gamut of a typical coated-paper CMYK condition. Few colours that a press can print are lost when you edit in it. The risks are practical:
- An untagged Adobe RGB file shown as sRGB looks flat and desaturated.
- A wide-gamut display is needed to see the extra range.
ProPhoto RGB
ProPhoto RGB contains every colour a camera sensor or press can produce, and then some. Its blue primary lies outside the range of visible colour, so some values describe colours that do not exist. That is the cost of the large gamut:
- Use 16 bits per channel. With 8 bits, the steps are spread across a huge range and gradients can band.
- Expect surprises. Large adjustments, such as heavy saturation boosts, can push values into territory that no output device can show.
- Check what the destination will do. Everything you deliver is later converted to a smaller space.
Choosing: a decision method
Pick the smallest space that still contains the colours you need to keep. Bigger is not always better. Three questions settle most cases:
- What is the source? Raw camera files can be developed into any space. Existing JPEGs are usually sRGB, and putting them into ProPhoto adds no colour.
- What is the destination? Print-only work gains from a space wider than sRGB. Web-only work gains nothing.
- What bit depth are you using? Use 8 bits for sRGB or Adobe RGB, and 16 bits for ProPhoto.
For a mixed job that ends as both a web banner and a printed poster, edit in the wider space and convert a copy to sRGB for the web version. Going from wide to narrow works. Going from narrow to wide cannot restore lost colour.
Setting it up consistently
Most problems with working spaces come from inconsistency, not the choice itself. In your editor's colour settings:
- Set one RGB working space and use it for new documents.
- Keep the policy for mismatched profiles on "preserve embedded profile", so opened files are not silently changed.
- Turn on warnings for profile mismatches and missing profiles, so you decide each case.
Check what a file already carries before you decide what to do with it. This command reads the description, class and colour space of an embedded profile:
exiftool -ICC_Profile:ProfileDescription -ICC_Profile:ProfileClass -ICC_Profile:ColorSpaceData photo.jpgA working space profile reports the class "Display Device Profile" and colour space "RGB". If the profile field is missing, the file is untagged, and you will have to choose how to interpret it.
Common mistakes
- Choosing ProPhoto RGB for 8-bit files. Banding and posterisation appear in smooth areas such as skies.
- Choosing Adobe RGB and exporting for the web without converting. Without a conversion to sRGB, colours look dull in browsers and apps that ignore the profile.
- Treating the working space as the print gamut. The working space only holds your colours. The print condition decides what is reproducible, and soft proofing is how you see that.
- Changing the working space halfway through a project. Each switch is a conversion that can clip colours. Pick once per project.
Exercise
A photographer edits raw files and sends the finished images both to a coated-paper press and to a website. The editing is done in 16-bit. Which working space would you recommend, and what must happen before the web version is published?
Show answer
Adobe RGB is a sound choice, because it holds nearly everything the press can print. ProPhoto RGB is also reasonable in 16-bit if the photographer wants to keep very saturated colours. Either way, a copy for the web must be converted to sRGB, not merely have the profile swapped, so the colours are remapped for browsers and typical screens.
Exercise
Why is it a problem to open an existing sRGB JPEG and place it in a ProPhoto RGB document without thinking about profiles?
Show answer
If the profile is converted, the colours stay correct but gain no extra gamut, because the source never contained those colours. If the numbers are reinterpreted without converting, the picture shows wrong, oversaturated colours. Either way, nothing is gained, so the document space should be chosen for the work, not for the source image.