Green Screen Remover. Runs on your device

CHROMA KEY NOTES / 018

Removing Any Solid Color Background, Not Just Green

SHORT ANSWER

You can key red, teal, yellow or brand-colour backdrops with the Custom colour button, but white, grey and black walls cannot be keyed. The reason is not the colour you pick: it is the 39-unit reach of the sampled-colour branch. A saturated cloth that is far from the subject works; a neutral cloth and a dark cloth are outside the tool's range before any slider is moved.

Open the green screen remover ↩

What the Custom button actually does

On the toolbar there are three colour choices: Green, Blue and Custom. Most users assume the Green swatch is simply a pre-filled green and that Custom lets them move that same logic to any colour. That is not what the code does. Selecting Green enters a dedicated rule that scores every pixel by how much its green channel dominates the other two. The cut point for that rule runs from 183 to 247 as tolerance moves, a 64-unit window that follows the brightness of the cloth. Every other colour, including the Blue swatch, routes through the sampled-colour branch, which scores a pixel by the distance between its colour shares and the key colour's shares. That branch has a fixed 35-unit window: the threshold only moves from 4 to 39 across the whole slider.

This asymmetry is the first thing to accept before trying to key a wall or a brand backdrop. The Green swatch is not "green mode"; it is a special-purpose keyer tuned for one colour. Custom is the general-purpose keyer, and general-purpose keyers have less room for error. For the exact threshold formulas and why the green preset is treated differently, see preset green versus sampled colour and what the tolerance slider actually changes.

Two panels comparing the green preset rule and the sampled colour rule, plus the shared brightness floor
Fig. 1 — The green preset reaches 64 units; every sampled colour reaches 35 units. Pixels darker than R+G+B=45 score the maximum distance in both rules.

Which backdrops work when sampled

I composited the same 55,510-pixel tiger cutout onto several cloths and sampled the cloth at the left edge. The reference is a real green screen keyed with the green preset: at tolerance 0 it clears 180,876 pixels and loses 0% of the subject. On a flat teal cloth (#26767A), sampled at tolerance 0, the custom key cleared 198,190 backdrop pixels and lost 0 subject pixels. On a flat brand-yellow cloth (#F2C41C), it cleared 198,192 and lost 2 subject pixels, which is effectively zero. Those two colours are far enough from the tiger's orange-brown palette that the boundary is clean.

The catch is that "far enough" has to hold across the whole cloth, not just at the sample point. When I lit the teal cloth from one side, the four probe points spread 75.3 units apart. At tolerance 0 the custom key still cleared 213,290 pixels and lost no subject, because the darkest corners were still inside the 39-unit reach. But that is the limit: any unevenness larger than 39 units will leave a visible patch. For the lighting side of this problem, uneven green screen lighting shows the same spread logic on a green screen, where the larger window buys you more slack.

BackdropKeyTol 0 clearedSubject lostTol 100 clearedSubject lost
Green screenGreen preset180,876 px0%181,346 px0.1%
Teal cloth #26767ASampled198,190 px0%213,337 px0.1%
Yellow cloth #F2C41CSampled198,192 px0%228,411 px27.2%
White sheet #ECECE9Sampled218,588 px9.5%235,615 px40.2%
Grey paper #A3A39ESampled218,166 px8.8%236,011 px40.9%
Black cloth #121212Green preset0 px0%44 px0.1%

The white and grey rows look successful at first: they clear more pixels than teal. The second column is why they are not. A white sheet at tolerance 0 already removed 5,298 subject pixels (9.5%) before any adjustment, and grey paper removed 4,876 (8.8%). The cloth and the subject share the same neutral colour family, so the key cannot tell them apart. Raising the tolerance makes the backdrop cleaner but eats more of the subject. By tolerance 100 the white sheet had removed 22,325 subject pixels (40.2%). This is the same trap a Photoshop user fell into when trying to magic-wand a dancer off a white background: "I have tried increasing tolerance, refining edges and using the smart brush, but nothing can get satisfactory results." When the colour distribution overlaps, the slider is not the fix.

Bar chart of six backdrops: two clear cleanly, three destroy the subject, and one is unreachable
Fig. 2 — Teal and yellow clear the cloth with little subject loss. White, grey and black fail because the subject is too close in colour share, or because the cloth is too dark to measure.

Why neutral walls are mathematically unreachable

The sampled branch measures colour as a share of red, green and blue. A neutral colour has equal shares, or nearly equal. The only key that can match it is another neutral colour, and the distance between greys is tiny: #121212 is 2.2 units from #A3A39E and #ECECE9 is 1.3 units from it. A neutral key would therefore key the cloth cleanly. The problem is that a neutral key has no colour left to separate a coloured subject, so it keys the subject too.

If you try a saturated key instead, the distance from every grey to that key is about 120 units. I checked #A3A39E, #ECECE9 and #121212 against the green preset, a red key, a teal key and a yellow key. The nearest any of them came was teal versus black cloth at 61.5 units, still well past the 39-unit ceiling. The maximum reach of the sampled slider is hard-coded as 4 + tolerance * 0.35, which is 39 at tolerance 100. No saturated key can reach a neutral backdrop, and no neutral key can keep a coloured subject. That is not a limitation of this tool; it is a property of colour proportions.

A Video Stack Exchange user asked the exact precursor question: "Can I achieve effective keying if I use green lights to illuminate a white wall?" The answer in the thread was that it is difficult because of the wall's texture, but the deeper answer from the arithmetic is that a white wall has almost no chromatic signal. Even if the wall were perfectly smooth, the green light would have to make it so green that it is no longer white, and then it would no longer be the wall the user wanted to keep.

The darkness floor

Both the green preset and the sampled branch share one more gate: any pixel whose red, green and blue sum to less than 45 is assigned the maximum distance score of 255. I tested black cloth (#121212), whose sum is 54, just above the floor. The green preset still could not see it because its green value is 255, and the sampled key did no better: it cleared backdrop pixels only because the subject was being cleared at the same time. A truly dark cloth has no colour information left for the key to measure.

This floor also explains why underexposing a green screen does not help when you later switch to a custom key. I generated a dark version of the bundled green frame with an 8-bit floor at 45. The green preset still cleared it almost perfectly (180,880 pixels at tolerance 0, 0 subject loss) because the green-dominance ratio survives even when the brightness drops. But the sampled branch needs the absolute colour shares to stay stable, and the floor pushes dark pixels toward grey. If you are tempted to use a dark red or navy backdrop because it looks "cleaner" on camera, you are making the key harder, not easier.

Distance chart showing which colours are inside the 39-unit reach and which three failure modes remove them
Fig. 3 — Only a second green sits inside the 39-unit reach. Grey, white and black are about 120 units from every saturated key. The three failure modes are uneven light, subject-colour collision and dark cloth.

Practical rules before you pick a colour

First, choose a backdrop the subject does not contain. A brand yellow (#F2C41C) works until the subject includes warm wood (#96693C), which is only 41.5 units away. A red cloth works until the subject is wearing brick red or warm skin tones. Second, keep the cloth evenly lit and matte. A 75-unit spread on a teal cloth still fits inside the 39-unit reach on average, but a 173-unit spread on a white sheet does not. Third, do not use dark cloth. Light it until it stops being dark; darkness erases the colour signal before the key gets a vote.

If the backdrop fails any of these three tests, a green screen is the more honest tool. The green preset's 64-unit window and brightness-following rule are designed for exactly the problems that break custom keys. For choosing between green and blue, blue screen versus green screen covers the clothing and sensor reasons. For what to do when the subject itself is green, the same page explains why blue then becomes the only option.

Where a sampled key runs out of material

Everything above assumes the subject is opaque. Once the object lets background light through, the panel of pixels it occupies stops being "subject colour" and becomes a mixture, and the mixture is what the key scores. I measured this on the green preset with the tool's own studio sample, and the result is a hard division rather than a gradual one: a pane carrying 30 percent of the subject colour lost all 10,800 of its pixels, while the opaque handle directly under it kept all 2,160. Half-opacity only arrives somewhere between 70 and 85 percent coverage. A custom key colour does not change the arithmetic, because the pane is transmitting the same cloth colour the key is looking for. This is why glass, smoke and semi-transparent subjects need a different shot rather than a different swatch: pick a colour the object does not transmit, or let the thing behind it be the background you wanted in the first place.

Table of seven reflectivity levels from 5 to 95 percent showing stored pixel value, output alpha, stripped green and visibility, plus four panes where a 30 percent pane is deleted whole while the opaque handle survives
Fig. 4 — A transparent subject never reaches the 42.7 percent coverage a key needs before it keeps anything. At 30 percent coverage the pane is deleted and the opaque handle under it is kept, in the same frame and under the same key.

Questions people actually ask

Can a green screen remover remove a red, blue or yellow background?
Yes, if the cloth is saturated and the subject does not share its colour family. Teal and yellow backdrops clear cleanly at the default tolerance. Blue backdrops also clear, but the blue swatch is scored as a sampled colour with only 39 units of reach, so uneven lighting leaves patches.
Why can't I remove a white or grey wall?
A neutral wall has almost no colour share. The only key that matches it also matches a coloured subject, and any saturated key sits about 120 units away while the slider only reaches 39.
Does a darker backdrop make keying easier?
No. Pixels with R+G+B under 45 score the maximum distance in both rules, so dark cloth has no measurable colour. Light the cloth instead of darkening it.
Is the green preset just a green version of Custom?
No. The green preset uses a green-dominance score with a 64-unit window. Custom uses colour-share distance with a 35-unit window. They are different keyers.
What is the safest non-green colour to key?
A matte, evenly lit cloth that is far from every colour in the subject. Teal (#26767A) survived a one-side lamp in my test; yellow and red work only when the subject contains no nearby warm tones.