What is chroma key?

Chroma key is a compositing technique that removes a specific background hue, classically green or blue, so a subject filmed in front of it can be placed over another image.

By · Updated

Want the full walkthrough? Read: Triim vs remove.bg, Photoroom, and Canva BG remover →

Explained in more detail

Chroma keying comes from film and television. A subject is shot in front of a uniformly lit green or blue screen. Software then removes everything that matches that hue and replaces it with another background. Green and blue are the usual choices because they differ strongly from skin tones, so people can be separated more cleanly.

Technically it is a color key built on chrominance (hue and saturation) rather than raw RGB distance. Keying on hue lets the effect survive uneven lighting: a shadowed patch of the green screen is darker but still the same hue, so it is still removed. Professional keyers also handle spill, where green light reflects onto the subject's edges, and produce soft alpha edges for hair and motion blur.

On a still image, a simple color key is the cheaper cousin. It treats the background as one color plus a tolerance. That is enough for flat graphics and studio backdrops, but it does not model lighting, spill or hue, so it is not a full chroma key.

The terms are often used loosely. "Chroma key" usually means the hue-based, lighting-tolerant technique used in video. "Color key" is the broader idea of removing pixels near a chosen color.

If your source is a photo with a fairly even background, a color key will often do the job. If your source is video or a photo with an uneven green screen, you need a proper chroma keyer in a video or image editor.

Related terms

Try it in Triim

Further reading

Part of the Triim image terms glossary, by Rocco Bombardieri.