CHROMA KEY NOTES / 021
When the Subject Is Green: Avoiding Accidental Holes
The tool deleted your green shirt because it scores colour, not objects. A polo shirt at rgb(46,125,79) scores 208.1 against the green preset, and the cut point reaches 208.1 at tolerance 40, so the whole shirt is removed in a single step. The fix is either to keep tolerance below 38, to move the green parts out of the key's reach, or, most reliably, to shoot on a backdrop that is not the same family of colour as the subject.
Open the green screen remover ↗
A key has no idea which pixels are you
Every pixel in the file is examined on its own, and the only question asked is how close its colour is to the backdrop. There is no step that says "this region is a person, keep it". So a shirt, a scarf, a plant in the corner and the backdrop itself are all the same kind of thing to the algorithm: a set of three numbers. When two of those sets are close enough, both are removed.
The green preset on this tool does not compare colours directly. It computes a green excess, the amount by which the green channel beats the larger of red and blue, normalised by the total brightness, then converts that to a distance where 255 means "no green at all" and 0 means "identical to the key". For the shirt above that arithmetic gives 46 / 250 × 255 = 46.9 of excess, so a distance of 208.1. That single number is what decides whether the shirt lives or dies.
The cut point, and where your subject sits on it
The tolerance slider does not change how strongly the key acts on a colour. It moves a single cut point along the distance scale: at tolerance 0 the cut point is 183, at 24 it is 198.6, at 40 it is 209, at 60 it is 222 and at 100 it is 247. Anything scoring below the cut point is a candidate for removal. Anything above it is left alone.
This is why raising tolerance to "recover" a green subject makes things worse rather than better. The subject's score is fixed by its colour and does not move; only the cut point moves. Pulling the slider back is the direction that saves a subject, pushing it forward is the direction that eats one.
| Subject | Colour | Score | Survives to | Gone at |
|---|---|---|---|---|
| Lime safety vest | rgb(176,196,48) | 242.9 | tolerance 92 | 100 |
| Pale green fabric | rgb(93,109,100) | 247.4 | every setting | never |
| Mid green polo | rgb(46,125,79) | 208.1 | tolerance 38 | 40 |
| Houseplant leaf | rgb(64,128,54) | 188.7 | tolerance 8 | 24 |
| Deep leaf shadow | rgb(44,102,44) | 177.2 | nothing | 0 |
The table is the whole argument in five rows. A pale, desaturated green that a designer would still call green is at 247.4 and no setting on this tool can touch it, because its green excess is too small to be mistaken for a screen. A saturated leaf at 188.7 is at the opposite end: even the loosest setting, tolerance 0, only just leaves it alone, and the default 24 removes it. In between sits the polo shirt, which is the awkward case, because whether it survives depends entirely on where the slider is.
Five subjects, measured against two different keys
To make that comparison usable, the same five subjects were scored twice: once with the green preset against a backdrop of rgb(0,210,106), and once with the sampled-key branch against a blue cloth of rgb(22,140,255). The sampled branch uses a different rule. It compares the pixel's colour share against the sampled colour's share, and its cut point only travels from 4 at tolerance 0 to 39 at tolerance 100. That much narrower range is the important difference.
On the green preset, the polo shirt keeps 175,084 of its 176,800 pixels at tolerance 24, with 1,716 edge pixels left partly transparent. At tolerance 40 the count goes to zero. The houseplant leaf is already gone at 24: 0 of 81,600 pixels kept. Skin at rgb(198,150,120) and denim at rgb(58,78,112) both score 255, the ceiling, because neither has any green excess at all, and they are kept at every setting.
On the sampled blue key the picture changes completely. The polo shirt's share score is 92.5, the plant's is 122.5, skin is 130.9, the vest is 161 and denim, the closest of the five, is 61.8. The cut point ceiling is 39, so nothing is within reach at any setting. That is the whole reason a key colour change works where a slider does not: it moves the subject from the middle of the scale to outside the reachable band altogether.
What actually happens when you keep the green backdrop
If the subject is a single flat colour, the transition is not gradual. Because every pixel of the shirt carries the same score of 208.1, tolerance 38 keeps all of it and tolerance 40 removes all of it. There is no half-faded middle state to inspect, and no amount of edge softness changes the outcome, because softness only decides what happens to pixels sitting close to the cut point, not to pixels on one side of it.
A real subject is never one flat colour, which is why the damage usually looks like speckle rather than a clean cutout. Sampling five leaves from the same plant on the same frame gave scores of 177.2, 188.7, 194.4, 214.4 and 229.3. Against a cut point of 198.6 at tolerance 24, three of those five are removed and two are kept, so a single plant comes out part solid, part hollow. That is what "the tool has a bug" looks like from the outside, and it is the direct consequence of the score being per pixel.
The narrow band also explains a second artefact. A pixel whose score lands just below the cut point is not necessarily deleted outright; it is what produces the 1,716 partly transparent edge pixels on the shirt. Those read as a translucent fringe, which at normal viewing size looks like a shirt with a bite taken out of it rather than a shirt that has been removed.
The order of fixes
There are three fixes and they are not interchangeable. The order matters because each one costs more than the one before it.
- Check the score before touching the slider. Set tolerance to 24, look at the result and ask whether the subject is intact. If it is intact, the cut point is below its score and the safest move is to leave the slider alone. If holes have appeared, raising tolerance will make them bigger, not smaller.
- Keep tolerance as low as the backdrop allows. Every point of tolerance moves the cut point toward the subject. The minimum that still clears the backdrop is the correct setting, and for a polo shirt that minimum is 38 or below.
- Move the subject outside the key's reach. For anything with a deep green area, this is the only fix that works. On a blue key the plant kept all 81,600 pixels at every setting; on the green key it kept none at the default. This is decided on set, by the cloth, the wardrobe or the position of the subject, not by the software.
One case deserves a warning of its own. Changing to a different green cloth is not a fix. Against a forest green of rgb(31,78,50), the polo shirt's score drops to 57.2 and the sampled branch's cut point at tolerance 0 is already 4, so the shirt is inside the key's reach from the first setting onward and has to be treated as lost. The houseplant survives there only to tolerance 75. Swapping one green for another green only works if the new green is far enough from the subject, and a designer's instinct for "this green looks different" is not a measurement. A blue or a magenta cloth moves the subject out of the green family entirely, which is why it holds up.
When the subject is mostly green
If the subject is a houseplant, a green uniform, foliage or a brand-green product, the honest answer is that no slider setting will save it and no amount of edge refinement will either. A photographer asked whether it was fine to shoot plants on a green screen, reasoning that "it is a pretty different green tone", had already found the wrong question: the tone being different is not the test, the score being above the cut point is. A design writer on the same topic put the underlying mechanism plainly, describing a key as something that changes "all colors that lie in the same quadrant as the key color itself" rather than adding an alpha channel.
For that case the answer is a different backdrop, chosen before the shoot, and the score table above is the tool for choosing it. If the subject has a deep green area and the shoot is already done, the remaining option is the one this tool cannot offer: a second exposure with the subject in place and the backdrop replaced, or a manual patch. It is worth knowing which of the three cases you are in before spending time on the slider.
Questions people actually ask
- Why did my green shirt get deleted along with the screen?
- Because a chroma key scores colour and never looks at the person. A mid-green polo at rgb(46,125,79) scores 208.1 on the green preset, and the cut point passes that score at tolerance 40, so the shirt is removed in one step.
- Does lowering tolerance fix a green subject?
- Only if the subject's score sits above the cut point you land on. At tolerance 24 the cut point is 198.6 and the shirt at 208.1 survives with 175,084 of 176,800 pixels kept; a houseplant leaf at 188.7 does not survive 24 at all, because 188.7 is below 198.6.
- What is the fastest fix for a subject that is mostly green?
- Change the backdrop colour on set. Against a blue key the same houseplant kept 81,600 of 81,600 pixels at every tolerance from 0 to 100, while on a green key it kept 0 at tolerance 24.
- Can I just paint the hole back in later?
- Not from the same file. A deleted pixel has no colour left to restore, so the hole has to be filled from a second exposure, a duplicate layer or hand painting, which is why the fix belongs on set rather than in the slider.
- Will a different shade of green backdrop help?
- Usually not. Against a forest green of rgb(31,78,50) the polo shirt's score falls to 57.2, which is already inside the sampled key's reach at tolerance 0, so the problem simply moves from one subject to another. Use a blue or magenta cloth when the subject itself is green.