Is all this color stuff worth it?
Yes, if nobody breaks it.
Part four This picks up where All those colors, so why is it gray? left off. That guide held a whole scene in the computer: log, HDR, float, and a linear working space to do the math in. If you have not read it, start there, or at part two if the bits are new to you.
Who broke my colors? Probably you. Here’s how.
A picture never stays in one program. It picks up an alpha channel, gets squeezed into video, hops between files and applications, and lands on a screen that may or may not agree with yours. Every hop is another chance to read the numbers under the wrong agreement.
The good news is that almost every color disaster is one of a few mistakes: a conversion that got skipped, one that got done twice, or one pointed at the wrong source. Learn to spot those and most of the breaking stops, including yours.
The fourth channel: alpha and premultiplication
Alpha is not a color, but it changes what the color numbers mean. Whether they have been multiplied by it already decides which operations are safe.
[Premultiplied pixels store how much light each pixel contributes: color times coverage. Unpremultiplied pixels store what color the surface is, with coverage kept separately. A half-covered red edge pixel is 0.5, 0, 0 premultiplied and 1, 0, 0 unpremultiplied.]
[The working rule, stated per operation. Color corrections (grades, curves, gamma, saturation, anything nonlinear) go on unpremultiplied values, so the grade acts on the full surface color and not on a value already scaled down by its coverage: unpremultiply, grade, premultiply again. Merges, blurs, filters, transforms and resizes go on premultiplied values, because those operations mix neighboring pixels, and mixing unpremultiplied colors drags the hidden color of invisible pixels into the edge as a dark or bright fringe.]
[Why bit depth matters here: in 8-bit, premultiplying a pixel with low alpha throws away most of its color precision, and dividing it back out amplifies the rounding. In float that loss is negligible. Ties back to the bit budget in part two and float in part three.]
How video stores color: YCbCr and subsampling
Most video does not store RGB at all. It stores brightness at full resolution and color at a fraction of it, and gets away with it because of your eyes.
[YCbCr: one luma channel and two color differences. Luma is a weighted sum of the gamma-encoded channels, weighted toward green (Rec.709: 0.2126 R’, 0.7152 G’, 0.0722 B’), the same green bias as the eye and the Bayer pattern. Note for the experts: luma is computed after the transfer function, so it is not true luminance, and some brightness leaks into the chroma channels.]
[Chroma subsampling: 4:4:4 keeps everything, 4:2:2 halves color horizontally, 4:2:0 keeps a quarter of the color samples. Callback to the part one: your acuity for color detail is far lower than for brightness, so the codec spends its budget where you will notice. Where it bites: green-screen keys, fine colored text, and red edges, on 4:2:0 footage.]
[Video levels in one line: many formats reserve codes above and below the picture range (64 to 940 in 10-bit). Full story in Why Is It Like This?]
Moving between agreements
Every color conversion is the same three moves: undo the curve, change the primaries, apply the new curve. Most color disasters are one of those moves skipped, doubled or pointed at the wrong source.
Here is an ordinary job. The camera shot log in its own wide gamut. The stock footage is Rec.709 video. The CG department rendered in ACEScg. The client’s logo is an sRGB PNG. Four sources, four agreements. Composite them as they arrive and you are adding numbers that mean different things.
The fix is one common space on the way in and a conversion to the delivery on the way out. In ACES terms, the on-ramp is the Input Transform (long called the IDT) and the off-ramp is the Output Transform (the ODT), which also does the tone mapping from scene range to display range. The pattern is not ACES-specific; ACES just gave the doors names.
scene-linear · AP1
look like
What the file is actually carrying
[Containers and the agreements they usually carry. The file format sets the bit depth and number type; the colorspace is often only a convention or a metadata tag the next program may ignore.]
| Format | Numbers | Typical agreement | Notes |
|---|---|---|---|
| OpenEXR | 16-bit half or 32-bit float | Scene-linear (often ACEScg) | Values above 1 and below 0 survive. Multichannel, so also data passes. |
| DPX | 10-bit integer (also 8, 12, 16) | Camera or film log | The film-scan workhorse. Log in, log out. |
| TIFF | 8 or 16-bit integer, or 32-bit float | Anything | Depends entirely on who wrote it. |
| PNG | 8 or 16-bit integer | sRGB | Stores unpremultiplied (straight) alpha. |
| JPEG | 8-bit integer, YCbCr, usually 4:2:0 | sRGB | Lossy, and subsampled. |
| ProRes 422 HQ | 10-bit, YCbCr 4:2:2 | Rec.709 or camera log | Editorial and delivery. |
| ProRes 4444 (XQ) | Up to 12-bit, 4:4:4 plus alpha | Rec.709 or camera log | Mastering, graphics with alpha. |
| H.264 / H.265 | 8 or 10-bit, usually 4:2:0 | Rec.709, or PQ / HLG for HDR | Delivery. Range and colorspace tags are often wrong. |
Reading the truth: scopes
Your eyes lie, and your monitor might be lying too. Scopes report what is actually in the signal, so a file read with the wrong agreement shows up as a shape you can learn to recognize.
The waveform plots every pixel’s luma against its horizontal position, black at the bottom and white at the top. The vectorscope throws brightness away and plots hue as angle and saturation as distance from center. Neutral is a dot in the middle, and the diagonal skin-tone line is where human skin lands, almost regardless of the person.
[The shapes of a wrong read: log read as linear sits milky in the middle of the waveform and never reaches black or white. Linear viewed without an output transform crushes into the bottom and hard-clips the top. A display transform applied twice lifts and flattens. The wrong primaries rotate or stretch the vectorscope cloud while the waveform looks fine. A 3D LUT applied at too low a bit depth combs the trace.]
None of these is definitive alone. A genuinely dark image and an image crushed by a bad transform can look similar on a waveform. The scope tells you what is there. You still have to know what should be.
So, where are the colors?
The colors were never in the computer. There are numbers, a budget for them, and a stack of agreements about what they mean.
That is the same trick your eye pulls. Part one showed it spending its precision where it matters for survival. Every good encoding since has done the same: gamma, log, float, chroma subsampling and the Bayer pattern all spend the budget where a human will notice.
In a studio, OCIO is how every tool gets to agree on those agreements, so nobody has to remember them by hand.
So, is all this color stuff worth it? Yes. Just don’t be the one who breaks it.
Some of what you have seen along the way, like video levels, why sRGB is not quite gamma 2.2, and why 4:2:0 exists at all, are historical accidents that stuck. They get a guide of their own: Why Is It Like This?
Glossary
Key terms used in this guide. In the prose, underlined-dotted terms show their short definition on hover or focus, and jump here on click.
- Premultiplied alpha
- RGB stored already multiplied by alpha, so a pixel holds the light it contributes. Merges and filters want it; color corrections want it undone first.
- YCbCr
- How video stores color: one luma channel and two color-difference channels (blue minus luma, red minus luma).
- Chroma subsampling
- Storing chroma at lower resolution than luma. 4:2:2 halves it horizontally; 4:2:0 halves it both ways.
- LUT
- A table mapping input values to output values, used to apply a transform or look quickly. A 3D LUT samples color on a cube and interpolates between the points.
- Waveform
- A scope that plots every pixel's luma against its horizontal position, black at the bottom and white at the top.
- Vectorscope
- A scope that drops brightness and plots chroma: hue as angle, saturation as distance from center.
- OCIO
- OpenColorIO: the open-source color-management library and config format most production software shares, so every tool agrees.