Green Screen Remover and White Balance: Why a WB Shift Rarely Breaks the Backdrop

White balance moves the backdrop and the subject together, so the default key mostly follows it. What it quietly destroys is the gap between the backdrop and anything green on the subject — and a tight, hair-safe key has much less room than the default.

Short answer: a white balance shift is usually the wrong suspect. Measured here, a 5600→3200 K change moves #00b140 to #00b971 — 11.24 points away, inside the default 22% tolerance, with zero backdrop pixels left. What breaks is the margin around green clothing: the gap to a green garment falls from 15.87 to 2.41 points, and a 12%/8% key leaks at about 7200 K or 3100 K.

Measured 2026-11-21 with the exact colour-distance and alpha formula used by this site's browser keyer, on a synthetic 600×400 frame (194,868 backdrop pixels, 41,208 non-green subject pixels, 3,200 green-garment pixels, 724 edge pixels). White balance is modelled with the Planckian locus and Bradford adaptation in linear sRGB; it is arithmetic, not a camera measurement. Script: gsr-loop/scripts/white-balance-20261121.js; raw result: white-balance-20261121.json.

What a white balance change really does to the pixels

A camera's white balance is a set of three channel gains chosen so that the light it assumes is neutral comes out neutral. Change the setting and every pixel is multiplied by a different ratio: red, green and blue are not moved by the same amount. That is why the backdrop turns yellow-green at one setting and blue-green at another, while skin turns orange or mauve in the same frame.

For a chroma key, the important consequence is that the operation is global. If you sample the green in the same frame you are keying, the sample moves with the backdrop, and the distance between them stays at zero no matter what the white balance was. This is the part most “white balance broke my key” advice misses: inside one frame, the key is self-correcting. The browser keyer behaves exactly like that, because it measures distance from the pixel you clicked, not from a preset.

The failure needs a second ingredient. Either the sample comes from a different take, or the white balance changes inside the clip while the sample stays where it was, or the tolerance is small enough that a shift which looks harmless on the backdrop crosses the line on something else. The rest of this page measures those three cases separately.

Measured: 2,400 K of drift, zero residual backdrop

Start with the headline case. The frame is balanced at 5600 K, the key is sampled there (#00b140), and then the camera white balance is moved without re-sampling. Every pixel goes through the same adaptation and then through the keyer's alphaAt() at 22% tolerance / 3% softness.

One synthetic frame, one fixed key sampled at 5600 K. “Backdrop” is the average distance of the 194,868 background pixels from that sample; “residual” counts background pixels with alpha above 8. The 12%/8% column is the hair-safe setting used further down. Camera white balance is the only variable.
Camera WBBackdrop becomesDistanceα at 22/3α at 12/8Residual at 22/3Residual at 12/8
8000 K#3caf2e14.19%0700194,868
7500 K#37b03112.91%0290194,868
7000 K#31b03411.42%0000
6500 K#28b0389.24%0000
5600 K#00b1400.00%0000
4500 K#00b34f3.43%0000
4000 K#00b5595.73%0000
3200 K#00b97111.24%0000
2500 K#00c09719.99%02550194,868
2000 K#00cbd033.13%255255194,868194,868

Two numbers come out of that table. The default 22%/3% key holds all the way from 2500 K to 10000 K with zero residual backdrop pixels; it only fails below about 2424 K, where the green has been pushed so far toward cyan that it no longer resembles the sample. The hair-safe 12%/8% key has a much narrower window: it starts leaking at about 7195 K on the warm side and 3118 K on the cool side. At 7500 K every backdrop pixel is above alpha 8 (alpha 29), and at 8000 K the sheet sits at alpha 70 — a visible haze, not a clean key.

That is the honest scale of the problem. A phone or mirrorless camera set to the wrong preset at 5600 K light is usually 1000–2000 K off, not 4000 K. The default key survives that. A tight key used to protect hair does not have the same headroom.

Four panels of the same green screen frame. Left: balanced at 5600 K. Second: the same frame with the camera set to 3200 K, which cools the subject and turns the green yellow-green. Third: the 3200 K frame keyed at 22 percent tolerance and 3 percent softness with the 5600 K sample, where the background is clean but the green garment inside the shirt has been deleted. Fourth: an 8000 K frame keyed at 12 percent tolerance and 8 percent softness, where the backdrop keeps a visible green haze while the green garment survives.
Left to right: the 5600 K source; the same frame at a 3200 K camera setting (a global cast, not a key problem); that 3200 K frame keyed with the 5600 K sample at 22%/3%, which clears the backdrop but deletes the green garment; and an 8000 K frame keyed at 12%/8%, where the tight key leaves the backdrop at alpha 70. The background changes colour in every panel because the whole frame changed, not because the green did something different.

The part that does break: the window around green clothing

The backdrop surviving is not the same as the frame being keyable. A usable key needs one tolerance value that clears the backdrop and leaves the nearest green thing on the subject opaque. The width of that window is the distance to the nearest green material minus the distance to the backdrop. White balance moves both numbers, and it does not move them equally.

Distances from the fixed 5600 K sample, at different camera white balance settings. “Window” is the green garment's distance minus the backdrop's distance. With 3 points of softness a setting exists only when the window is at least 3 points wide, because tolerance must reach the backdrop and still stop 3 points short of the garment.
Camera WBBackdropGreen garmentWindowA valid 3%-softness setting?
5600 K0.00%15.87%15.87Yes — any tolerance below 12.87%
5000 K1.60%14.31%12.71Yes
4500 K3.43%12.73%9.30Yes
4000 K5.73%11.90%6.17Yes
3400 K9.42%13.00%3.58Yes, but only a 0.58-point band
3200 K11.24%13.65%2.41No
2500 K19.99%18.76%−1.23No — garment is closer than the backdrop
2000 K33.13%28.67%−4.46No — keying the backdrop deletes the garment

This is the real cost of a white balance error. At 5600 K the two greens are 15.87 points apart, so a 10% tolerance with 3% softness clears the backdrop and leaves the garment fully opaque. At 3200 K they are 2.41 points apart: the backdrop is already 11.24 points out, and the garment is only 13.65, so any tolerance that clears the backdrop also eats the garment. There is no “right” slider value in that frame, no matter how carefully you tune it. At 2500 K and below the garment is closer to the sample than the backdrop is, so the ordering has inverted.

The same squeeze explains a failure that looks unrelated: a 12%/8% key at 5600 K already leaves the green garment at alpha 123 (half transparent) because 15.87% is inside its 20-point ramp. Move the camera to 4500 K and the garment drops to alpha 23; at 4000 K it is 0. The key did not get worse; the margin got smaller. For a green costume, the material tolerance table is the right place to start, and this page is the reason those numbers are only valid at one white balance.

Auto white balance inside a clip: the sample that stops matching

Auto white balance is the other version of the same problem. It does not jump to a preset; it drifts as the camera's estimate of the scene changes, often when a large white or coloured object enters the frame, when a window comes into view, or when the subject walks from shade into sun. The drift is usually slower than a preset change, but it is still a global gain change with no notification. A shooter on Video Production Stack Exchange describes one: “the camera appears to have shunted everything toward blue from that point on” — a talking head with fixed lighting and a ProRes file that had the balance baked in (Video SE 23557). His background did not move; the gains did.

With a 22%/3% key, the backdrop can absorb a large drift before it leaves any residue, as the first table shows. The visible damage happens earlier at the subject edge and on green props: the distance between the sample and a thin mixed edge moves by 1–3 points over a 2400 K drift, which is enough to turn a semi-transparent strand into a fully transparent one, or the reverse. That is a matte change, not a colour change, so despill cannot repair it. The hair-flicker page measures the same instability from the temporal side.

For video, the practical choice is simple. If the white balance is locked for the whole take, sample once at the start. If it is not locked, sample per shot (not per frame) and check the first and last frame at 100%; per-frame sampling against auto WB makes the matte follow the camera's guesses, which is worse than a fixed sample that is slightly off. The moving-camera page shows the same trade when the sample window slides across an uneven wall.

What to do on set, and in the keyer

  1. Set white balance by hand and leave it. Pick the preset that matches the key light (tungsten, daylight, shade) or set it from a grey card, then do not touch it between takes. Auto WB is the one setting that can change the pixels without changing anything you can see on the monitor.
  2. Shoot a green reference patch in every take. A clean piece of the same backdrop in frame, lit the same way, gives the keyer a sample that is valid for that take even if the WB drifted. It also makes the drift visible: compare the patch at the start and end.
  3. Sample after the white balance, never before. If you set WB in post, do it before you click the green. The key stores an RGB triple; changing the colour of the frame afterwards leaves the old sample pointing at the old colour.
  4. Do not reuse one sample across takes with different lighting. The measured window at 3200 K is 2.41 points wide, narrower than the softness ramp, so the same slider value cannot be correct for both takes. Re-sample, then re-check the edge.
  5. Keep the lights one colour temperature. Mixed tungsten and daylight on the same backdrop produces a gradient that no single white balance can neutralise. Fix the lights before you touch tolerance; the green colour guide covers the shade side of the same decision.
  6. Judge the margin, not the backdrop. A clean checkerboard only proves the background cleared. Put a green prop or a green-sleeved subject in the frame and check that it stays opaque; that is the number white balance actually moves.

Run your own numbers: WB drift meter

Sample the green in take A, then sample the same backdrop in take B (or in the last frame of the clip). Enter both, plus the nearest green thing on the subject, and the meter applies the same distance and alpha formula the browser keyer uses. It reads the two hex values you type; it does not analyse your footage.

Defaults are the measured 5600 K sample, the 3200 K backdrop and a green garment. “Valid setting” means a tolerance exists that clears the backdrop and leaves the subject fully opaque at the chosen softness. The meter uses sRGB Euclidean distance divided by 441.6729559300637, the same constant as the keyer.

Green screen remover and white balance FAQ

Does auto white balance break a green screen key?

Rarely at the default settings, and almost never the backdrop. In the measured frame, a 5600→3200 K shift put the backdrop 11.24 points from the sample but still inside the 22%/3% tolerance, so all 194,868 backdrop pixels cleared to alpha 0. The same shift cut the gap between the backdrop and a green garment from 15.87 to 2.41 points, which leaves no tolerance that can clear one and keep the other. Auto WB is dangerous because it changes the sample-to-subject relationship silently, not because it turns the whole backdrop into residue.

How much white balance drift can a green screen remover take?

It depends on the key, not on the tool. At 22%/3%, the measured backdrop held from 2500 K to 10000 K and only failed below about 2424 K. At the hair-safe 12%/8%, it started leaking at about 7195 K on the warm side and 3118 K on the cool side; at 7500 K the backdrop sat at alpha 29, and at 8000 K at alpha 70. A tighter key is a narrower net around one sample, so the same drift costs more. Test the setting you actually use rather than the default.

Should I white balance before or after sampling the green?

Before. A key is stored as an RGB triple, so any colour change after sampling makes the stored sample point at the old colour. If you are correcting a still in an editor, set the white balance first, export or re-open the corrected frame, then sample the green in the browser keyer. If you are keying a video per frame, apply one white balance to the whole clip first and sample per shot, not per frame.

Why does the green look different between two takes of the same setup?

Because white balance, shutter and aperture are auto by default on most cameras, and each can change the RGB values without changing the light. A phone that reframes a window or a white shirt will re-estimate WB and shift the green; a camera in shade mode under daylight will be warm; a tungsten preset under an LED panel will be cool. The backdrop did not change, the gain did. Lock the setting, shoot a green patch in each take, and use the edge checker instead of trusting the monitor.

Can I fix a white balance cast after the key instead of re-shooting?

You can fix the colour of the remaining subject, but not the matte. A cast correction changes RGB; it does not bring back a hair edge that the key made transparent, or restore a green garment that fell inside the tolerance radius, because those decisions were already written into alpha. If the backdrop is the only thing that survived, re-sample the cast frame and re-key it; if the subject lost pixels, the frame needs a new sample, a lower tolerance, or a reshoot. The spill page covers the colour-only repair that does work after keying.

Next step

If the backdrop is clean and a green prop vanished, run the meter above with the two real hex values before you change anything else. If the green is already correct and the problem is a rim on skin, go to spill removal. If you want a count of what survived, use the edge checker; for the still-frame limit and the frame-sequence route, see green screen remover for video.