Theme

The thread: Computed, not quoted

Every swatch begins as a spectral power distribution and is carried through the colour-matching functions as it is drawn. None is a hex code recalled from a table.
Four standard illuminants, and how little they have in common. Spectral power distributions for A, D50, D65, E, on one scale. Illuminant A rises steeply toward the red; the daylight illuminants carry the atmosphere's absorption structure; E is flat by definition. All four are ordinarily called white. What light is

A spectrum is not a colour

What arrives at the eye is a function of wavelength. What the eye reports is three numbers. Keeping the two apart is the single most useful habit in the subject, and almost every confusion in applied colour comes from letting them merge.

Three colour-difference formulae, disagreeing. ΔE76, ΔE94 and ΔE2000 for the same 9 pairs of colours. The largest disagreement between ΔE76 and ΔE2000 here is 26.6 units — larger than the threshold usually quoted for a just-noticeable difference, so the choice of formula can decide whether two colours count as matching. Difference and uniformity

How far apart are two colours

ΔE is meant to be a distance with the property that the same number means the same perceived difference everywhere. Three successive formulae have tried, they disagree with each other by more than a just-noticeable difference, and the disagreement decides real matching questions.

The CIE 1931 chromaticity diagram with its unreachable region marked. The spectral locus encloses every chromaticity a human eye can see. Cells inside the sRGB triangle are drawn in their own colour; the 85 per cent outside it are hatched, because no value this display accepts is the colour belonging there. Matching and measuring

Most of this diagram cannot be shown

The chromaticity horseshoe is the canonical illustration of colour science, and nearly every printed copy is filled edge to edge with colours the page cannot produce. The honest version marks them, and the marking covers most of the picture.

The CIE 1931 colour-matching functions. The three functions that turn a spectrum into three numbers. They are all positive, which is why XYZ exists — the RGB functions they were derived from are not. ȳ is by construction the luminous efficiency function, which is why luminance comes out of Y. Where the model breaks

Seventeen observers in 1931

The standard observer that governs every colour specification in industrial use is an average over seventeen young British men, measured with equipment from the 1920s. It is known to be wrong in the blue, the correction has existed since 1951, and it has never been adopted.

A spectrum, weighted three ways, and the three numbers left over. The illuminant D65 above; below, the same spectrum multiplied by each matching function. The area under each product is one coordinate of XYZ. Everything else about the spectrum — its shape, its structure, all its remaining degrees of freedom — is discarded here. What the eye does

Three numbers

A spectrum has as many degrees of freedom as anyone cares to give it. The eye reports three. Everything colour science can do, and every way it fails, follows from that one collapse.

Blackbody spectra from Planck's law, 2000 to 10000 K. Each curve is computed from Planck's law and normalised to its own peak. The peak moves toward shorter wavelengths as temperature rises. Only two of these radiators peak inside the visible band at all — a 2000 K source peaks at 1449 nm, far into the infrared, and merely rises toward the red across everything shown here. What light is

Blackbody and the colour of temperature

Heat something and it glows, in a colour fixed by its temperature alone. Planck's law gives the whole spectrum from one number, and the Planckian locus is the only curve in colour science derived from physics rather than from measurements of people.

MacAdam's discrimination ellipses, drawn 10 times actual size. Twenty-five ellipses of colours indistinguishable from their centres. They are drawn at 10× because at true scale most are thinner than a line. Their areas vary by a factor of 74, which is the whole result: a step of the same size in xy means very different things in different places. Difference and uniformity

MacAdam measured it

In a perceptually uniform space the just-noticeable-difference contours would be circles of equal size. MacAdam's ellipses are neither, by a factor of eighty — and transforming them into each candidate space settles which spaces improved matters and by how much.

One palette under normal vision and three dichromacies. The same 7 colours simulated by the Brettel–Viénot–Mollon construction at severity 1.0. protanopia and deuteranopia collapse the red-green distinctions, and tritanopia leaves them and collapses blue against yellow instead. This shows which discriminations survive, not what anybody sees. Where the model breaks

Simulating what cannot be simulated

A colour-blindness simulation cannot show what anybody sees. What it can show is which discriminations survive, and that is a narrower claim, a checkable one, and the only one worth making.

Two different spectra that are the same colour. Two reflectance curves differing by 92 per cent RMS, and the two patches they produce under D65: identical to ΔE00 = 6.2e-14, which is arithmetic noise rather than a small number. Both patches are inside the sRGB gamut, so neither has been clipped into agreement. What the eye does

Two spectra, one colour

Metamerism is usually described and almost never demonstrated. It does not have to be — the metameric black space is enormous, so a matching pair can be constructed to order, verified, and then made to come apart by changing the light.

One reflectance, two illuminants, two colours. A reflectance peaking near 610 nm, and the colours it produces under D65 and A. The object has not changed. The light has, and colour is a property of the pair. What light is

The illuminant is half the answer

An object has a reflectance, not a colour. The colour appears when a specified light falls on it, which is why two surfaces can match in a shop and clash outside, and why every serious matching standard names the light.

The sRGB transfer function, and the gamma 2.2 curve it is not. Code value against relative luminance. The sRGB function is piecewise — a short linear segment near black, then a 2.4 power law with an offset — and it is close to but not the same as a plain 2.2 power law. Half-way along the axis of stored values sits at 21 per cent luminance, and half the luminance of white is at code 188. Difference and uniformity

The midpoint is not half

Code 128 sits halfway along the sRGB scale and carries about a fifth of white's luminance. Half the luminance is code 188. Almost every gradient, blur and resize on the web gets this wrong, and the errors are visible once known.

sRGB, Display P3 and Rec. 2020 compared on the chromaticity diagram. Three nested triangles inside the horseshoe. sRGB covers 74 per cent of the area P3 covers. Rec. 2020's red and green primaries sit on the spectral locus itself, within 0.000 and 0.002 of it, meaning they are monochromatic. Matching and measuring

What a gamut costs

Three primaries reach a triangle and the visible region is not a triangle, so something has to give. Widening the primaries helps, has a price in precision and compatibility, and runs into a limit that is geometric rather than technological.

The CIE 1931 colour-matching functions. The three functions that turn a spectrum into three numbers. They are all positive, which is why XYZ exists — the RGB functions they were derived from are not. ȳ is by construction the luminous efficiency function, which is why luminance comes out of Y. What the eye does

Why colour is exactly three-dimensional

Matching every wavelength with three primaries requires, for some wavelengths, a negative amount of one of them. That physical awkwardness is why the colour-matching functions were transformed into XYZ, and why the horseshoe is curved.

The sRGB transfer function, and the gamma 2.2 curve it is not. Code value against relative luminance. The sRGB function is piecewise — a short linear segment near black, then a 2.4 power law with an offset — and it is close to but not the same as a plain 2.2 power law. Half-way along the axis of stored values sits at 21 per cent luminance, and half the luminance of white is at code 188. Matching and measuring

A hex code is not a colour

Six hexadecimal digits identify three numbers. Turning three numbers into a colour needs a colour space, a transfer function, a white point and a display, and leaving any of them unstated is the everyday version of every confusion in colour management.

triphosphor fluorescent — three narrow phosphors plus the mercury lines, and the white it produces. The spectral power distribution of a triphosphor source, normalised to its own peak, and the colour a perfect white reflector takes under it: chromaticity (0.3379, 0.3389), correlated colour temperature 5258 K at Duv -0.0035. The white looks ordinary. The spectrum producing it does not. What light is

A lamp is not a blackbody

A fluorescent tube puts a third of its light into four mercury lines. A white LED is a blue spike with a hole beside it. Both are sold by a colour temperature, and a colour temperature says nothing about either.

Threshold and suprathreshold contours, normalised to the same size. At five of MacAdam's centres: the measured just-noticeable-difference ellipse in grey and the ΔE2000 = 1 contour in gold, each scaled to the same mean radius so that only shape and orientation are being compared. A scale change preserves orientation exactly, so any rotation between the pair settles the question. They differ by 24° on average and by 70° at worst, and the ratio between their sizes varies 4.8-fold across the diagram — so no single factor turns one into the other. Difference and uniformity

A threshold is not a unit

MacAdam measured the smallest difference anyone could detect. ΔE2000 was fitted to how far apart plainly different colours look. The two are quoted interchangeably, and the contours they produce are not even the same shape.

One stimulus, three rooms, three appearances. The same XYZ in a dark, a dim and an average surround. The stimulus does not change and is drawn identically in all three panels; what changes is what CIECAM16 says it looks like. Predicted lightness runs from 65.6 to 57.5 — a spread of 8.1 — with chroma and colourfulness moving too. Colorimetry returns one answer here because it has nowhere to put the room. What the brain does

A viewing condition is an argument

An appearance model takes a stimulus and a situation. The second argument is not a refinement of the first — it is the content of the claim, and a model that returns an appearance from a colour alone has assumed a room without saying which.

The same two surfaces, weighed by each system. A long-wavelength and a short-wavelength surface under D65, with their relative luminance under the photopic curve and under the scotopic one. Under daylight vision the red surface is 1.33 times the blue; under rod vision it is 0.15 times, a reversal by a factor of 9.0. The swatches are the photopic appearance, which is the only one a display can produce: rod vision has no colour, and drawing a guess at it would be an invention. What the eye does

The eye that has no colour

Rods outnumber cones twenty to one, work alone below a hundredth of a candela, and are absent from the centre of gaze. Between dusk and a lit room both systems run at once, and neither standard curve describes what is happening.

How far a match comes apart when the observer changes. A broad source and a three-primary source, solved at each primary width so the pair is an exact tristimulus match for the CIE 1931 observer. The pair is then handed to the 1964 observer, and the gap between them is plotted. For the observer they were built for the gap is arithmetic noise at every width. For the other it grows as the primaries narrow, reaching 0.012 at 10 nm — and displays have been getting narrower for twenty years. Where the model breaks

Whose eyes

The standard observer is an average over seventeen people, and no reader is it. What that costs was small when displays were broad and grows every time the primaries get narrower.

A box tolerance and a ΔE tolerance around the same colour. A slice through CIELAB at L* 50, with the ΔE2000 = 1 contour traced point by point and a ±1 component box drawn over it. The contour is 2.1 times longer in one direction than the other, and the box is square. Of every sample either rule accepts, the two disagree about 74% — accepted by one specification and rejected by the other, on the same measurement. Difference and uniformity

A tolerance is a shape

A total colour difference below one, or every component within one — the two sound like the same requirement stated twice. They are different shapes, they disagree about most of what either accepts, and which one a supplier is held to is worth money.

Colourfulness rises with light level; apparent contrast does not. Predicted colourfulness M for one stimulus across four decades of adapting luminance, and the exponent of the lightness curve over the same range. M rises by a factor of 2.24 — the Hunt effect, which the model does predict. The lightness exponent changes by -2.2%, and in the wrong direction — the Stevens effect, which it does not. What the brain does

Brighter looks more colourful

Colourfulness rises with light level and the model predicts it. Apparent contrast is supposed to rise too, and the model does not — which turns out to be right, because the thing that actually carries contrast is the surround.

Three ways to spend a thousand code values. Normalised code value against luminance, for PQ, HLG and a conventional gamma curve, all covering 0.001 to 10000 cd/m². PQ spends 51% of its range below 100 cd/m² — roughly where a picture lives — and the gamma curve spends 15%, leaving the rest for highlights. A PQ code is the only one of the three that names a luminance rather than a fraction of whatever the display can manage. Where the model breaks

How bright is white

An sRGB value says a pixel is some fraction of whatever the display can manage. A PQ value says it is two hundred candelas. The change is the largest in display encoding since gamma, and what it removed was the honest admission that nobody knew.

A sample with two reflectance curves, and neither below one. The apparent reflectance of an optically brightened sample, measured under D65 and A. It exceeds 1 — the shaded band — which no reflector can do: more light leaves at these wavelengths than arrives at them, because the sample absorbs in the violet and re-emits in the blue. And the two curves differ, so the sample has no single reflectance to store. The effect drawn here is a floor: most of the excitation band lies below 380 nm, outside the range computed here. What light is

Some paper is brighter than white

The reflectance model assumes light leaving at a wavelength arrived at that wavelength. A fluorescent sample breaks the assumption, has no reflectance curve at all, and is in almost every sheet of white paper sold.

The 1976 uniform chromaticity diagram, with the unreachable region marked. The u′v′ diagram: the same spectral locus and the same sRGB primaries as the 1931 picture, projectively transformed. Straight lines stay straight, so mixtures and the gamut triangle survive; what changes is the distribution of area, and the green region that dominates the 1931 diagram is much reduced. 8% of the cells sampled inside the locus are reachable at Y = 0.55; the rest are hatched. Matching and measuring

The diagram was replaced in 1976

The CIE knew the 1931 diagram was badly distorted and published a better one. Half a century later almost every chromaticity plot in print is still the old one, and both are still printed filled edge to edge with colours no display can show.

463 essays on this thread, page 1 of 20 · all threads · all essays