Sub topic 8
Colour spaces and gamut: what each device can reproduce
This chapter assumes you know what RGB and CMYK channels are and how 8-bit values (0 to 255) work. It covers what a colour space is, what gamut means, and why some screen colours cannot be printed. Later chapters build on this when they cover gamma, conversion and ICC profiles.
Numbers are not colours yet
The triple 255, 136, 0 is only three numbers. It becomes a specific colour once you say what "full red", "full green" and "full blue" mean. A different display, or a different set of primaries, would turn the same triple into a slightly different orange.
A colour space is a colour model plus a definition of what its numbers mean. The definition fixes three things:
- The primaries: the exact red, green and blue (or cyan, magenta, yellow) that the channels refer to.
- The white point: which colour counts as "white" when all channels are at maximum.
- The encoding: how channel values map to light intensity. The next chapter covers this for sRGB.
So "RGB" is a model, while sRGB, Display P3 and Adobe RGB are colour spaces built on that model. The same applies to print. "CMYK" is a model, while "US Web Coated SWOP" and "FOGRA39" are CMYK spaces that describe particular inks, paper and press conditions.
Gamut: the range a space can reach
A gamut is the set of colours a colour space, or a device, can reproduce. Every device has one:
- A monitor's gamut depends on its red, green and blue emitters.
- A printer's gamut depends on its inks, the paper and the press.
- A camera sensor has its own range of colours it can record.
Gamuts differ in size and shape. A wide-gamut display can show very saturated greens that a standard display cannot. A printing press can make some deep cyans that many monitors cannot.
The diagram is a simplification. Gamuts are three-dimensional shapes, and the overlap between print and screen depends on the specific profile.
Why some screen colours cannot be printed
Screens add light, and they can produce very bright, saturated colours such as a vivid blue or a neon green. Ink works by absorbing light from the white paper, and paper can only reflect the light that falls on it. Many pure, glowing screen colours therefore have no CMYK equivalent.
A colour that a destination space cannot represent is out of gamut. Bright saturated oranges, greens and blues are the usual victims. When you convert such a colour to CMYK, the software must replace it with something printable, and the result looks duller.
The effect is easy to see in the hex value #00ff00. This is the sRGB green primary, and it prints noticeably flatter than it appears on screen.
Checking gamut in code
You can see what "out of range" means with a small experiment. Converting to a larger space and back is lossless. Going to a smaller space produces values outside 0 to 1, and a program must then handle them. The sketch below checks whether a linear colour value fits a destination range and clips it if it does not.
def in_gamut(channels):
return all(0.0 <= c <= 1.0 for c in channels)
def clip(channels):
return tuple(min(1.0, max(0.0, c)) for c in channels)
# A colour that a smaller space cannot represent:
# the red channel would need "more than full" red.
candidate = (1.12, 0.30, -0.05)
print(in_gamut(candidate)) # False
print(clip(candidate)) # (1.0, 0.3, 0.0)Clipping is the simplest way to handle out-of-gamut values, and it is also the crudest. Two different out-of-gamut colours can clip to the same result, which loses the difference between them. Real conversions choose a rendering intent to decide how to compress colours. That topic comes in a later chapter.
Common mistakes
| Mistake | Effect | Fix |
|---|---|---|
| Treating RGB values as absolute colours | The same hex looks different on different displays | Know which colour space the file is tagged with |
| Designing in a wide-gamut space for web delivery | Colours shift or clip in browsers and on standard screens | Work in sRGB unless you have a reason not to |
| Expecting print to match the screen | Saturated colours print duller | Soft-proof with the print profile before sending |
| Judging colour on an uncalibrated display | You approve colours you cannot see correctly | Calibrate, or at least use a display with a known profile |
Summary of the working model
- A colour model describes channels. A colour space gives those channels exact meaning.
- A gamut is the set of colours a space or device can reproduce.
- Screens and printers have different gamuts that overlap but do not match.
- Out-of-gamut colours must be changed during conversion, and that change is visible.
Exercise
A client sends the logo colour as #00ff00 and asks for it to look identical on a website and on a printed brochure. Why can you not promise this, and what would you do?
Show answer
#00ff00 is a fully saturated sRGB green, and it is likely outside the gamut of a coated CMYK press, so the print version will be duller. Convert the colour using the printer's CMYK profile, soft-proof it to show the client the expected result, and agree on a printable CMYK value for the brochure while keeping the hex value for the web.
Exercise
What three things does a colour space define that a colour model alone does not?
Show answer
The exact primaries, the white point, and the encoding that maps channel values to light intensity.