What Is Chroma Keying?

Chroma keying is one of the most foundational techniques in visual effects. It works by isolating a specific color — typically green or blue — in a video frame and replacing it with a different background. From Hollywood blockbusters to YouTube tutorials, this technique is everywhere.

Despite how common it is, getting a clean key is genuinely difficult. Poor lighting, compression artifacts, and subject movement can all destroy an otherwise good shot. This guide covers everything you need to pull a professional-quality key.

Green vs. Blue Screen: Which Should You Use?

Both green and blue screens work on the same principle, but each has situational advantages:

FactorGreen ScreenBlue Screen
LuminanceHigher — easier to key in low lightLower — better for dark environments
Spill on skin tonesMore noticeableLess noticeable
Subject wearing blue?Better choiceAvoid
Night scenesCan look unnaturalMore convincing

In most studio workflows, green is preferred because digital camera sensors are most sensitive to green light, which means less noise in the key channel.

Lighting Your Green Screen Correctly

Bad lighting is the number one reason keys fail. Follow these principles:

  • Light the screen evenly. Use a light meter or waveform monitor to ensure no more than half a stop of variation across the screen.
  • Separate your subject from the screen. At least 1–2 meters of separation reduces green spill dramatically.
  • Light the subject independently. Match the direction and color temperature of your intended background plate.
  • Avoid wrinkles and shadows. Wrinkles cause uneven color distribution that's nearly impossible to fix in post.

Pulling the Key: Core Workflow

Whether you're using After Effects, Nuke, or DaVinci Resolve, the core keying workflow follows the same logic:

  1. Sample the screen color — Use a color picker to select the dominant background hue.
  2. Adjust tolerance/softness — Broaden the range to catch transition pixels without eating into your subject.
  3. Apply a matte cleanup — Use erosion, blur, or a dedicated matte choker to tighten edges.
  4. Despill — Remove reflected green light from your subject using a despill node or plugin.
  5. Color match — Grade the subject to match the color temperature and exposure of your background plate.

Common Keying Mistakes to Avoid

  • Keying compressed footage (use the highest quality source available — avoid H.264 if possible)
  • Ignoring motion blur at the edges of fast-moving subjects
  • Forgetting to match camera grain between foreground and background
  • Over-eroding the matte, causing a thin "floating" look

Recommended Tools for Keying

Different tools excel at different stages of the keying pipeline:

  • Nuke (Foundry) — Industry standard for film VFX; the Primatte and IBK keyers are exceptionally powerful.
  • After Effects (Adobe) — Keylight plugin is excellent for broadcast and online work.
  • DaVinci Resolve — The Fusion compositor includes robust keying tools, great for color-managed pipelines.
  • Blender — The Cryptomatte and Keying nodes offer solid results for indie productions.

Final Thoughts

A great composite starts on set, not in post. Invest time in proper lighting and screen preparation, and your keying work becomes exponentially easier. Even with imperfect footage, a systematic keying workflow — key, clean, despill, match — will get you professional results consistently.