AI Generation

Green Screen and Chroma Key, Explained

Also called chroma key, keying, blue screen, chroma keying, alpha channel

A green screen is an evenly lit backdrop in a colour that does not occur in skin or hair, so software can single that colour out and make it transparent. Removing it is called chroma key, or keying, and the result is an alpha channel that lets the subject be composited over anything else.

Why the colour matters

A green screen works on one idea: if a region of the frame is a colour that appears nowhere on your subject, a computer can identify it by value alone and delete it. Green wins because it is far from every skin tone, because Bayer sensors sample green twice as often as red or blue and therefore give the cleanest signal there, and because it is easy to buy in bright, saturated, matte form. Blue screen predates it and is still the right answer when the wardrobe is green or the subject is very blonde.

What you get out the far end is an alpha channel: a per-pixel map of how opaque the subject is. That is the actual deliverable. A hard binary cutout looks like a sticker, and the reason good compositing looks good is that the alpha channel carries fractional values along hair, motion blur and glass.

What keying actually does

A keyer takes a target colour and a tolerance, and marks every pixel inside that range as transparent. Everything else about the process is damage control around that blunt operation.

  • Tolerance decides how much colour variation counts as background. Too tight and the screen survives in patches. Too loose and it starts removing shadow on the subject.
  • Matte choke shrinks or grows the edge by a fraction of a pixel to hide fringing, at the cost of thin detail.
  • Despill shifts pixels that are partly green back toward skin or hair colour. Without it, every edge reads faintly radioactive.
  • Garbage matte is a rough hand-drawn shape that throws away the lighting stands and screen edges before the keyer ever sees them.

Order matters. Despill before choking, because choking removes the very pixels despill needs to work on.

Lighting it so it keys cleanly

Almost every bad key is a lighting problem rather than a software problem. Three rules cover most of it.

Light the screen and the subject as two separate jobs, with their own instruments. Get the screen as even as you can, ideally within a stop across the whole surface, because unevenness forces the tolerance up and a high tolerance is what eats hair.

Then buy distance. Three metres between subject and screen kills most spill, lets the screen fall out of focus, and stops the green from wrapping around shoulders. If the room is small, spill control matters more than screen size.

Finally, put a hard light behind the subject that is not green. A rim from a tungsten or daylight source rebuilds the edge that despill will otherwise flatten, and it gives the keyer an unambiguous boundary to find.

Green screen versus AI matting

Segmentation and matting models now pull a usable alpha channel from footage shot against a wall, a street, or a bookshelf. For a single talking subject in reasonable light this is faster and cheaper than any keying setup, and it is what background removal tools actually run.

The tradeoff is what each method knows. Chroma key measures real colour values, so it handles fractional opacity honestly: motion blur on a swinging arm, individual flyaway hairs, cigarette smoke, a glass of water. AI matting infers an outline, so those same cases are where it guesses, and guessing shows up as chattering edges frame to frame.

Practical split. Shoot a green screen when the plate has transparency, fast motion, fine hair, or has to hold up at full resolution in a wide shot. Skip it and use matting for talking heads, product shots on simple backgrounds, and anything where a soft edge is acceptable. When you do use matting on video, judge it in motion rather than on a single frame, because temporal instability is its characteristic failure and a still will not show it.

The prompt for this

A starting point that reliably produces the effect. Adjust the subject and setting; keep the technical clauses.

Remove the background completely and output the subject on transparency, keeping every frizzy hair strand at the edge and the semi-transparent water glass in her hand, no green fringe

Try Green Screen yourself

Open the generator with a starting point already filled in.

Frequently asked questions

Why green and not some other colour?
Green sits furthest from human skin tones in the colour space, digital sensors devote the most photosites to green so it carries the least noise, and green paint is cheap and bright. Blue screen is still used when the subject wears green, for blonde hair, and on film stocks where the blue layer was cleaner.
What is the difference between a green screen and chroma key?
The green screen is the physical backdrop. Chroma key is the software operation that finds that colour range and turns it into transparency. You can key any consistent colour, and you can shoot a green screen and never key it, so the two are not interchangeable even though people use them that way.
What is spill and how do you avoid it?
Spill is green light bouncing off the backdrop onto the subject, which tints hair edges and shoulders and makes them vanish along with the background. Fix it by distance: put the subject three metres or more from the screen, light them separately, and add a backlight that is not green to re-establish the edge.
Do I still need a green screen if AI matting exists?
For most single-subject shots, no. Segmentation models pull a usable matte off an ordinary background and skip lighting a screen entirely. A green screen still wins on motion blur, flyaway hair, glass, smoke, and anything semi-transparent, because keying reads actual colour values rather than guessing an outline.
Why does my key leave a green fringe?
Because the edge pixels are genuine blends of subject and backdrop, so they really are part green. Every keyer has a spill suppression or despill control for this, and it works by shifting those pixels toward the subject's colour. A hard edge with no fringe usually means the matte was choked too far and you lost hair.
How flat does the lighting need to be?
Aim for under about one stop of variation across the whole screen. Uneven green means the keyer needs a wide tolerance to catch both the bright and dark patches, and a wide tolerance is what starts eating the subject. Lighting the screen separately from the subject is the single biggest quality lever.

Related terms