FUSION · FULL ARTICLE
HSLKeyer
HSLKeyer selects color ranges through Hue, Saturation and Luminance. Sampling, softness, matte cleanup, local garbage matting and diagnostic output are separate stages; a downstream mask requires an explicit Alpha extraction.
Overview
HSLKeyer derives a key from hue, saturation and luminance. It is a Resolve FX tool based on the HSL Qualifier, rather than a DeltaKeyer with Clean Plate and dedicated spill controls. It is useful for simple colored backgrounds, local object grading and neon isolation.
The main eyedropper establishes a range from a drag in the Viewer. Add/Subtract Color Range changes the inner range, while Add/Subtract Softness modifies its transition toward the outer range. These solve different problems: an unwanted core color and an abrupt edge should not receive the same correction.
For normal background removal, sample the color that should become transparent. Invert switches the sides and makes sampled colors opaque. That is often useful for a clothing or neon mask; the supplied screenshot already has Invert enabled, so its state is not a universal starting point.
Use Hue, Use Saturation and Use Luminance enable independent components. Saturation alone can select colorful regions regardless of hue and brightness; Hue plus Saturation can suit a colored object whose shadows and highlights should remain included. Disabling a component broadens the accepted colors rather than automatically improving the matte.
Matte Finesse refines the extracted key. Pre Filter acts before sampling, Clean Black suppresses white specks in black, and Clean White fills dark holes in white. Raising Black Clip drives intermediate values toward black; lowering White Clip drives them toward white. Judge these controls after deciding the Invert polarity.
The 1 and 2 buttons in Matte Finesse switch control pages rather than ready-made presets. The manual also describes Morph Operation/Radius, Denoise, Shadow/Midtone/Highlight and Post Filter. These refine shape and noise separately from the initial color selection.
Blur Radius softens the boundary but can spread treatment beyond the silhouette and create a halo. In/Out Ratio changes this distribution: increasing it helps fill small black holes, while negative values suppress small white specks. Inspect fine detail separately from broad solid regions.
Garbage Matte confines selection to a rectangle or ellipse. Enabling a shape exposes position, size, rotation and softness; its own Invert is separate from the top-level color-key inversion. If the subject moves, the shape must follow it throughout the shot.
Alpha Highlight keeps opaque regions in color and displays transparent regions as gray. Alpha Highlight B/W displays a monochrome Alpha view. These diagnostic modes do not create a separate mask socket. Restore Final Composite for production wiring. The illustrated Glow Mask route extracts Alpha through Bitmap; an ordinary Effect Mask can instead read Alpha directly when selected in the receiving tool.
For local grading, the original RGB goes directly to ColorCorrector.Input, while HSLKeyer → Bitmap feeds ColorCorrector.EffectMask. For Glow, send the same mask to GlowMask to select emitters. For background replacement, the keyed image feeds Merge.Foreground and the new background feeds Background.
Inspect the result over a contrasting new background and during playback: a clean still can hide edge noise, color leakage and changing exposure. HSLKeyer does not automatically despill green edges or recover hair transparency from heavily compressed footage; first improve the source and selected range.
When to use it
- Isolate skin for local grading
- Select foliage or sky colors
- Change a product/logo color
- Create a matte for Glow or Blur
- Extract a bright neon sign
- Build a technical color-isolation mask
Article screenshots
Inputs & outputs
HSLKeyer · Connection guide
This map uses the primary image input and output. It does not establish an inventory of additional OFX sockets; local treatment is shown through explicit Bitmap/mask or Merge branches.
HSL Keyer is a Resolve FX effect based on the HSL Qualifier. Sampling defines transparency from color and Invert changes the retained side. On the Fusion page, merge the keyed RGBA image or extract its Alpha with Bitmap to mask grading and Glow.
Inputs
- Input
Image for color keying
Receives: The full source RGB/Alpha before local grading.
Inside the node: Sampling and H/S/L components create a key refined with Matte Finesse and Garbage Matte.
Typical sources: MediaIn · ColorCorrector · Merge
Choose Invert polarity and inspect Alpha separately from diagnostic RGB.
Outputs and destination
Output
Keyed 2D RGBA in Final Composite; diagnostic modes change how the result is displayed.
Next step: Bitmap · Merge · MediaOut
An ordinary Effect Mask accepts an image: select the desired channel in the receiver. Bitmap is useful for separate processing, not a mandatory type conversion.
- Output
- Keyed 2D RGBA in Final Composite; diagnostic modes change how the result is displayed.
Processing order
- Decide whether to remove the sampled background or retain the sampled object and set Invert deliberately.
- Connect the source image and establish a range with a sustained drag of the main eyedropper.
- In Alpha Highlight B/W, refine the core range with Add/Subtract Color Range.
- Adjust the transition separately with Add/Subtract Softness.
- Choose the required Hue/Saturation/Luminance components and recheck shadows and highlights.
- For noisy footage, compare Pre Filter and then modest Clean Black/White corrections.
- Only then adjust Clip, Blur Radius, In/Out Ratio and, if needed, the second Matte Finesse page.
- Exclude unrelated objects with Garbage Matte and check its position throughout the clip.
HSLKeyer working flow
MediaIn → HSLKeyer → Bitmap.Image; Bitmap.Mask → ColorCorrector.EffectMask; MediaIn → ColorCorrector.Input; ColorCorrector → MediaOut
This example uses Bitmap to extract the channel explicitly. An ordinary Effect Mask also supports direct image input with channel selection in the receiver.
Use Merge for compositing. For local processing choose Alpha or Luminance in Effect Mask; Bitmap remains an explicit alternative.
Parameters
HSLKeyer · Inspector guide
Separate sampled color, Invert polarity, matte refinement and output. The 22 original subjects are retained; additional second-page and shape controls are explicitly listed as further reference entries.
- Selection
- Which color is selected
- Matte Finesse
- Cleanliness and softness
- Garbage Matte
- Where the key applies
- Output
- RGBA or mask branch
01 / Selection · Color and key polarity
Eyedroppers, Reset and Hue/Saturation/Luminance.
- Picker tools
01 / Selection > Picker toolsSamples a color range and its soft boundary. Sample Eyedropper establishes the range through a Viewer drag. Add/Subtract Color Range refines the inner region; Add/Subtract Softness changes the outer transition. Clicking the main eyedropper again clears the previous selection.
Check / distinguish: Refine the core and softness separately while viewing Alpha Highlight B/W.
- Invert
01 / Selection > InvertSwitches which side of the sampled color remains opaque. By default the sampled color is used for removal. Invert makes the sampled region opaque and the unselected region transparent. A local object mask commonly uses On; removing a sampled background uses Off.
Check / distinguish: Sample a clearly red object and inspect both polarities in Alpha, not just RGB.
- Reset
01 / Selection > ResetResets sampled colors while retaining general settings. Reset lets you resample the range but is not a complete node reset. Review previously adjusted general controls and matte refinement separately before starting again.
Check / distinguish: After Reset, inspect Invert, Matte Finesse and Output.
- Use Hue
01 / Selection > Use HueIncludes hue in range selection. Use Hue distinguishes color tones. Disabling it enables options such as saturation-only or luminance-only keys, but may include objects with similar saturation or brightness.
Check / distinguish: Disable Hue on a frame containing differently colored objects and compare coverage.
- Use Saturation
01 / Selection > Use SaturationIncludes saturation in range selection. Use Saturation separates colorful objects from neutral regions. With Hue and Luminance disabled, selection follows saturation rather than a specific hue.
Check / distinguish: Check highlights on the object so less saturated parts do not unexpectedly drop out.
- Use Luminance
01 / Selection > Use LuminanceIncludes luminance in range selection. Use Luminance can separate a bright source from a dim reflection of similar color. An overly narrow luminance range can leave holes in the shadows or highlights of one object.
Check / distinguish: Compare Luminance on and off across the object’s full lighting range.
- Check · Range versus softness
Selection Range > eyedroppersColor Range changes the core and Softness its transition. These are separate decisions for a natural edge.
Check / distinguish: Establish a clean core before refining soft intermediate values.
- Image into Effect Mask
Image into Effect MaskAn ordinary Effect Mask can receive an image directly. Select Channel in the receiver’s Settings; Bitmap is useful when separate thresholds and matte processing are required. This does not define the contract of special Garbage/Pre Matte inputs.
Check / distinguish: Compare direct input with Bitmap using the same channel.
02 / Matte Finesse · Cleanup and edge
The first-page controls in the supplied screenshot.
- Matte Finesse · 1 / 2
02 / Matte Finesse > Matte Finesse · 1 / 2Switches matte-refinement control pages. The 1 and 2 buttons navigate Matte Finesse pages. They do not apply a ready-made parameter preset. The additional page contains shape, noise and finishing operations described in the manual.
Check / distinguish: Open the appropriate Matte Finesse page before assuming a control is missing.
- Pre Filter
02 / Matte Finesse > Pre FilterFilters the image before color sampling. Pre Filter can help footage containing compression blocks and similar artifacts. It acts before sampling, so reassess the selected range after changing it rather than inspecting only the final edge.
Check / distinguish: Compare compression blocks in the matte at a small value and at 0.
- Clean Black
02 / Matte Finesse > Clean BlackSuppresses white specks in the black part of the key. Raising Clean Black removes light background specks and can erode translucent edges. It is specialized cleanup, not a repair for an incorrectly sampled color range.
Check / distinguish: Watch both the background and fine hair or edge detail.
- Clean White
02 / Matte Finesse > Clean WhiteFills dark holes in the white part of the key. Raising Clean White strengthens light regions and can expand translucent edges. Excessive cleanup turns soft detail into a solid silhouette.
Check / distinguish: Check holes inside the subject while preserving natural edge translucency.
- Black Clip
02 / Matte Finesse > Black ClipPushes intermediate matte values toward black. Raising Black Clip strengthens the black side; its range is 0…100 with a default of 0. This is a stronger level adjustment than color selection and can destroy fine transparency.
Check / distinguish: Raise it after cleanup and compare fine edges against the replacement background.
- White Clip
02 / Matte Finesse > White ClipPushes intermediate matte values toward white. Lowering White Clip strengthens the white side; its range is 0…100 with a default of 100. Its direction differs from Black Clip: reduce White Clip to make white regions more solid.
Check / distinguish: Compare 100 with a slightly lower value while preserving soft boundaries.
- Blur Radius
02 / Matte Finesse > Blur RadiusBlurs the extracted key boundary. Blur Radius can soften a harsh edge but can also spread treatment beyond the silhouette and create a halo. Choose it for resolution and task; the large 0…2000 range does not imply a large radius is desirable.
Check / distinguish: After blurring, inspect a contrasting background and compare RGB with Alpha.
- In/Out Ratio
02 / Matte Finesse > In/Out RatioChanges the distribution of the refined boundary. Increasing In/Out Ratio helps fill small black holes. Values below 0 suppress small white regions. It helps control fringing but does not replace matte-shape inspection.
Check / distinguish: Compare positive and negative values on the same fine detail.
03 / Matte Finesse 2 · Further refinement
Additional operations described in the manual.
- Morph Operation
Matte Finesse > page 2Shrink/Grow changes key boundaries; Opening/Closing helps treat holes and small ragged structures.
Check / distinguish: Compare one operation with bypass on fine detail.
- Morph Radius
Matte Finesse > page 2Radius sets the amount of the selected Morph Operation. Choose the operation before its strength.
Check / distinguish: Record the Shrink/Grow/Opening/Closing mode before judging radius.
- Denoise
Matte Finesse > page 2Denoise processes the extracted key, reducing stray qualification and softly filling holes.
Check / distinguish: Compare it with Pre Filter because they act at different stages.
- Shadow
Matte Finesse > page 2Shadow adjusts key strength based on dark areas of the source image.
Check / distinguish: Inspect the object’s shadow and the dark background separately.
- Midtone
Matte Finesse > page 2Midtone changes key strength based on source midtones.
Check / distinguish: Hold Shadow and Highlight fixed during the comparison.
- Highlight
Matte Finesse > page 2Highlight adjusts key strength in bright source regions.
Check / distinguish: Do not confuse this control with the separate Highlight node.
- Post Filter
Matte Finesse > page 2Post Filter refines the key using the source image and may help recover fine structure on sharp edges and hair.
Check / distinguish: Compare fine detail before/after with Clip controls fixed.
04 / Garbage Matte · Spatial region
Shape, geometry and its independent inversion.
- Matte Shape
04 / Garbage Matte > Matte ShapeSelects the built-in geometric restriction. Matte Shape enables Rectangle or Ellipse; None disables Garbage Matte. An active shape exposes positioning and bounds that should follow the subject’s motion.
Check / distinguish: Check shape boundaries at the beginning and end, not only on the reference frame.
- Matte Shape: None
04 / Garbage Matte > Matte Shape: NoneThe option without a built-in garbage matte. None disables only HSLKeyer’s geometric crop. Color selection and Matte Finesse remain active; it does not reset the entire key.
Check / distinguish: Use None as a comparison if part of the object is unexpectedly cropped.
- Matte Shape: Rectangle
04 / Garbage Matte > Matte Shape: RectangleThe rectangular garbage-matte option. Rectangle conveniently excludes similarly colored objects around a screen, sign or garment. Enable the Viewer overlay controls to position it and allow for motion.
Check / distinguish: Check that the rectangle does not crop needed shadows, highlights or subject edges.
- Matte Shape: Ellipse
04 / Garbage Matte > Matte Shape: EllipseThe elliptical garbage-matte option. Ellipse suits a rounded local region. It is a coarse spatial restriction over the color selection rather than an automatically detected subject contour.
Check / distinguish: Leave the ellipse wider than the required silhouette and tune softness separately.
- Edge Softness
Garbage Matte > active shapeSoftness applies to the geometric shape boundary rather than HSL color softness. The range is 0…100 with a default of 50.
Check / distinguish: Inspect the shape boundary separately from the color-selection edge.
- Garbage Matte Invert
Garbage Matte > InvertThis inverts the geometric shape and differs from the top-level color-key Invert.
Check / distinguish: Toggle only one inversion at a time.
- Center / Bounding Width / Height
Garbage Matte > active shapePosition and dimensions define the spatial selection region; Center can be animated.
Check / distinguish: Check subject coverage throughout the motion.
- Rotation
Garbage Matte > active shapeRotation turns the built-in shape. It neither rotates the RGB image nor narrows the HSL range.
Check / distinguish: Compare the rectangle angle against the subject silhouette.
05 / Output · Diagnostics and RGBA
Choosing a view does not create a new mask socket.
- Output
05 / Output > OutputSelects production or diagnostic output. Final Composite outputs the keyed image, Alpha Highlight shows transparency in context, and Alpha Highlight B/W shows monochrome Alpha. None of these menu choices creates another physical mask output.
Check / distinguish: Restore Final Composite before Bitmap Alpha extraction and Merge.
- Output: Alpha Highlight
05 / Output > Output: Alpha HighlightShows opaque regions in a contextual color diagnostic. Alpha Highlight displays opaque areas in their source color and transparent areas as gray. It helps identify which object belongs to the selected Alpha region.
Check / distinguish: Do not treat the gray diagnostic background as the actual replacement-background color.
- Output: Alpha Highlight B/W
05 / Output > Output: Alpha Highlight B/WShows a black-and-white Alpha diagnostic. White means opaque, black transparent and gray intermediate Alpha. Invert changes which colors are retained, but the meaning of white and black in Alpha remains unchanged.
Check / distinguish: Inspect noise, holes and transitions, then restore production Output.
- Output: Final Composite
05 / Output > Output: Final CompositeOutputs the keyed image for downstream compositing. On the Edit page this mode displays the result over a lower video track. In Fusion, wire the background explicitly to Merge.Background; Final Composite does not create that branch by itself.
Check / distinguish: Inspect keyed Alpha and both Merge image inputs before judging the finished composite.
- Check · Use Alpha in the host
Output > Use AlphaResolve FX documentation describes Use Alpha for compositing over a lower video track. Check availability in the current host; Fusion exercises explicitly use keyed Alpha and Merge.
Check / distinguish: Do not transfer Edit-page track compositing into Fusion without explicit connections.
06 / Downstream · Bitmap and Merge
Keep RGB separate from the extracted Alpha mask.
- Check · Image to mask
HSLKeyer > Bitmap > Effect MaskHSLKeyer Output is an image. Bitmap with Channel = Alpha produces a mask for another node.
Check / distinguish: Check that the connection after Bitmap is typed as mask.
- Check · Preserve original RGB
MediaIn > ColorCorrector.InputFor local grading, the image branch stays intact and extracted Alpha takes a separate mask branch.
Check / distinguish: Apply a diagnostic desaturation and confirm color remains outside the mask.
- Check · Glow emitter mask
Bitmap > Glow.GlowMaskAn emitter mask limits glow generation while allowing light to spread beyond the selected neon.
Check / distinguish: Compare GlowMask with post-processing restriction through EffectMask.
- Check · Explicit background
HSLKeyer > Merge.ForegroundFinal Composite does not automatically create a Fusion background. The replacement feeds Merge.Background separately.
Check / distinguish: Inspect both branches against a contrasting background.
Before adjusting the node
- The correct Invert polarity is selected.
- Color Range and Softness have been tuned separately.
- Clean/Clip preserves fine edges.
- Garbage Matte covers the subject’s movement.
- Final Composite is restored, with Bitmap/mask or Merge wired explicitly.
Reference documentation
- Blackmagic Design · DaVinci Resolve 21 Reference Manual · Resolve FX Key · HSL Keyer
Resolve FX Key · HSL Keyer, starting on page 3648. Control labels are cross-checked with the original screenshots in this article.
Examples
Local garment correction through Alpha
Preserve the original RGB and control a correction with a separate HSLKeyer-derived mask.
Starting conditions
DaVinci Resolve / Fusion Resolve 21 reference · Resolve with HSL Keyer available · A platform supported by your installation
1920 × 1080 · 24 fps · 96 frames · A consistent working space; keep the source color transform unchanged while sampling the key.
- HSL Keyer and the listed native Fusion tools are available in your installation.
- Values are starting points for the teaching source; sample the range from your own frame.
Source material
- PLATE
A short opaque shot containing a colored garment, fabric shadows and a neutral background.
Use your own clip and trim it to teaching frames 0–95, or adapt the checkpoints to its actual duration.
Nodes and connections
PLATE— Source image · MediaInKEY— HSLKeyer · HSLKeyerMATTE— Bitmap · Alpha · BitmapMaskFX— ColorCorrector · ColorCorrectorOUT— MediaOut · MediaOut
| Source | Destination | Data |
|---|---|---|
Source image (PLATE)Output | HSLKeyer (KEY)Input | image |
HSLKeyer (KEY)Output | Bitmap · Alpha (MATTE)Image | image |
Source image (PLATE)Output | ColorCorrector (FX)Input | image |
Bitmap · Alpha (MATTE)Mask | ColorCorrector (FX)EffectMask | mask |
ColorCorrector (FX)Output | MediaOut (OUT)Input | image |
Graph output: MediaOut (OUT)
Parameter values
- HSLKeyer (KEY) / Selection Range / Invert
trueThe sampled color should become the white, opaque part of the key.
- HSLKeyer (KEY) / Keyer Options / Use Hue
trueHue separates the target subject or screen from other colors.
- HSLKeyer (KEY) / Keyer Options / Use Saturation
trueStart with saturation enabled and inspect low-saturation edges separately.
- HSLKeyer (KEY) / Keyer Options / Use Luminance
falseThe first comparison does not reject garment shadows solely by brightness; unwanted selections still need checking.
- HSLKeyer (KEY) / Matte Finesse / Black Clip
0Inspect the sampled range before adding a lower clip to its partial coverage.
- HSLKeyer (KEY) / Matte Finesse / White Clip
100This initial upper boundary retains partial coverage for edge inspection.
- HSLKeyer (KEY) / Output / Output
"Final Composite"After diagnostic viewing, restore the working RGBA output before Bitmap or Merge.
- Bitmap · Alpha (MATTE) / Controls / Channel
"Alpha"Extract the keyed image coverage rather than the brightness of its diagnostic RGB.
- ColorCorrector (FX) / Correction > Colors / Saturation
0.8A modest desaturation makes the extent of the correction easy to inspect.
Reproduce the example
- Branch MediaIn: feed the original RGB to the processor and a second branch to HSLKeyer.
The key controls the affected region while the original image remains a separate processor input.
Check: Check destination port names against the diagram and confirm each MediaIn shows its assigned source.
- Enable Invert, use Hue/Saturation and drag the main eyedropper across several garment shades.
Polarity determines which side stays opaque; the sampled range depends on the actual source.
Check: Temporarily choose Alpha Highlight B/W: the target garment or tubes are white, unwanted regions black.
- Refine the core with Add/Subtract Color Range and the transition with the separate Softness eyedroppers.
Expanding the color range and softening its boundary affect different parts of the key.
Check: Start at Black Clip 0 / White Clip 100. While cleaning noise with Matte Finesse, retain useful partial coverage, hair or thin tubes.
- Restore Final Composite and connect HSLKeyer.Output to Bitmap.Image; set Channel = Alpha.
Bitmap converts the image stream into a separate mask stream for the selected processor input.
Check: View Bitmap: white regions match the intended target. The keyer's diagnostic image does not replace the original RGB.
- In ColorCorrector choose Master/RGB and set Saturation = 0.8; compare with the original frame.
A restrained correction makes spillover onto skin, background or similarly colored objects easier to detect.
Check: The selected garment changes. RGB outside its mask matches the source; the originally opaque shot retains solid Alpha.
- Inspect frames 0, 48 and 95, then play the full short shot at working resolution.
One successful frame does not reveal key chatter, lighting changes or a subject leaving the garbage matte.
Check: Compare RGB and Alpha in motion. If a garbage matte is needed, keep it wider than the target and verify its position throughout the shot.
Expected result
- MediaOut (OUT) · frame 48
The selected garment is gently desaturated; areas outside its matte retain the source RGB.
Alpha: HSLKeyer and Bitmap show the local selection; the final opaque shot retains Alpha = 1.
When the result differs
- The opposite region was selected.
Cause: Invert is set to remove a sampled color when it should retain it, or vice versa.
Correction: Compare both Invert states in Alpha Highlight B/W using one clearly colored subject.
- Skin or background changes along with the garment.
Cause: The color range includes similar colors; disabling Luminance broadens the selection.
Correction: Refine the range, compare enabling Luminance and restrict the area with a garbage matte if necessary.
References
- Blackmagic Design · DaVinci Resolve 21 · HSLKeyer
Printed/PDF pages 3648–3650: sampling, Invert polarity, H/S/L selection, Matte Finesse and Output.
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion image flow, Bitmap Alpha extraction, effect masks and Merge Background/Foreground.
Colored neon as the source of Glow
Select glow emitters by color while allowing the halo to spread beyond their edges.
Starting conditions
DaVinci Resolve / Fusion Resolve 21 reference · Resolve with HSL Keyer available · A platform supported by your installation
1920 × 1080 · 24 fps · 96 frames · A consistent working space; keep the source color transform unchanged while sampling the key.
- HSL Keyer and the listed native Fusion tools are available in your installation.
- Values are starting points for the teaching source; sample the range from your own frame.
Source material
- PLATE
An opaque shot of a colored neon sign; retain other bright sources in frame to test selection.
Use your own clip and trim it to teaching frames 0–95, or adapt the checkpoints to its actual duration.
Nodes and connections
PLATE— Source image · MediaInKEY— HSLKeyer · HSLKeyerMATTE— Bitmap · Alpha · BitmapMaskFX— Glow · GlowOUT— MediaOut · MediaOut
| Source | Destination | Data |
|---|---|---|
Source image (PLATE)Output | HSLKeyer (KEY)Input | image |
HSLKeyer (KEY)Output | Bitmap · Alpha (MATTE)Image | image |
Source image (PLATE)Output | Glow (FX)Input | image |
Bitmap · Alpha (MATTE)Mask | Glow (FX)GlowMask | mask |
Glow (FX)Output | MediaOut (OUT)Input | image |
Graph output: MediaOut (OUT)
Parameter values
- HSLKeyer (KEY) / Selection Range / Invert
trueThe sampled color should become the white, opaque part of the key.
- HSLKeyer (KEY) / Keyer Options / Use Hue
trueHue separates the target subject or screen from other colors.
- HSLKeyer (KEY) / Keyer Options / Use Saturation
trueStart with saturation enabled and inspect low-saturation edges separately.
- HSLKeyer (KEY) / Keyer Options / Use Luminance
trueBrightness contributes to the initial selection; compare with this component disabled if parts are missed.
- HSLKeyer (KEY) / Matte Finesse / Black Clip
0Inspect the sampled range before adding a lower clip to its partial coverage.
- HSLKeyer (KEY) / Matte Finesse / White Clip
100This initial upper boundary retains partial coverage for edge inspection.
- HSLKeyer (KEY) / Output / Output
"Final Composite"After diagnostic viewing, restore the working RGBA output before Bitmap or Merge.
- Bitmap · Alpha (MATTE) / Controls / Channel
"Alpha"Extract the keyed image coverage rather than the brightness of its diagnostic RGB.
- Glow (FX) / Controls / Filter
"Fast Gaussian"Keep the filter fixed for the first halo-size comparison.
- Glow (FX) / Controls / Glow Size
12A teaching starting value for 1920×1080; tune the width for your source.
- Glow (FX) / Controls / Glow
0.5A moderate strength reveals the halo's origin while retaining sign detail.
Reproduce the example
- Branch MediaIn: feed the original RGB to the processor and a second branch to HSLKeyer.
The key controls the affected region while the original image remains a separate processor input.
Check: Check destination port names against the diagram and confirm each MediaIn shows its assigned source.
- Enable Invert and sample the colored luminous tubes, then inspect white clipped highlights separately.
Polarity determines which side stays opaque; the sampled range depends on the actual source.
Check: Temporarily choose Alpha Highlight B/W: the target garment or tubes are white, unwanted regions black.
- Refine the core with Add/Subtract Color Range and the transition with the separate Softness eyedroppers.
Expanding the color range and softening its boundary affect different parts of the key.
Check: Start at Black Clip 0 / White Clip 100. While cleaning noise with Matte Finesse, retain useful partial coverage, hair or thin tubes.
- Restore Final Composite and connect HSLKeyer.Output to Bitmap.Image; set Channel = Alpha.
Bitmap converts the image stream into a separate mask stream for the selected processor input.
Check: View Bitmap: white regions match the intended target. The keyer's diagnostic image does not replace the original RGB.
- Feed Bitmap.Mask to Glow.GlowMask and start with Fast Gaussian, Glow Size 12 and Glow 0.5.
GlowMask selects emitters before glow generation, allowing the halo to spread beyond their boundary.
Check: The selected sign generates the light. Avoid clipping its halo with the same hard mask on EffectMask. Check Glow's A-channel processing when the source Alpha must be preserved.
- Inspect frames 0, 48 and 95, then play the full short shot at working resolution.
One successful frame does not reveal key chatter, lighting changes or a subject leaving the garbage matte.
Check: Compare RGB and Alpha in motion. If a garbage matte is needed, keep it wider than the target and verify its position throughout the shot.
Expected result
- MediaOut (OUT) · frame 48
Glow originates from the selected sign and spreads softly into nearby pixels; other sources are checked separately.
Alpha: Bitmap contains the local key. Check Glow's A-channel processing separately and obtain solid final Alpha if the shot must remain opaque.
When the result differs
- The opposite region was selected.
Cause: Invert is set to remove a sampled color when it should retain it, or vice versa.
Correction: Compare both Invert states in Alpha Highlight B/W using one clearly colored subject.
- The halo is clipped at the boundary or part of a tube does not glow.
Cause: The mask is connected after the effect, or clipped white highlights fall outside the sampled range.
Correction: Check GlowMask, then inspect tube Alpha and adjust H/S/L components without selecting the entire frame.
References
- Blackmagic Design · DaVinci Resolve 21 · HSLKeyer
Printed/PDF pages 3648–3650: sampling, Invert polarity, H/S/L selection, Matte Finesse and Output.
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion image flow, Bitmap Alpha extraction, effect masks and Merge Background/Foreground.
Remove a colored screen and merge a new background
Separate a simple subject by screen color and inspect keyed Alpha over a replacement image.
Starting conditions
DaVinci Resolve / Fusion Resolve 21 reference · Resolve with HSL Keyer available · A platform supported by your installation
1920 × 1080 · 24 fps · 96 frames · A consistent working space; keep the source color transform unchanged while sampling the key.
- HSL Keyer and the listed native Fusion tools are available in your installation.
- Values are starting points for the teaching source; sample the range from your own frame.
Source material
- PLATE
A simple subject against a reasonably even colored screen; avoid complex hair and transparent glass on the first pass.
Use your own clip and trim it to teaching frames 0–95, or adapt the checkpoints to its actual duration.
- BG
An opaque 1920×1080 replacement image with contrast against the subject's edge.
Use your own photograph and align its dimensions and color space.
Nodes and connections
PLATE— Source image · MediaInKEY— HSLKeyer · HSLKeyerBG— Replacement background · MediaInMERGE— Merge · MergeOUT— MediaOut · MediaOut
| Source | Destination | Data |
|---|---|---|
Source image (PLATE)Output | HSLKeyer (KEY)Input | image |
HSLKeyer (KEY)Output | Merge (MERGE)Foreground | image |
Replacement background (BG)Output | Merge (MERGE)Background | image |
Merge (MERGE)Output | MediaOut (OUT)Input | image |
Graph output: MediaOut (OUT)
Parameter values
- HSLKeyer (KEY) / Selection Range / Invert
falseRemove the sampled background while retaining the unsampled subject.
- HSLKeyer (KEY) / Keyer Options / Use Hue
trueHue separates the target subject or screen from other colors.
- HSLKeyer (KEY) / Keyer Options / Use Saturation
trueStart with saturation enabled and inspect low-saturation edges separately.
- HSLKeyer (KEY) / Keyer Options / Use Luminance
trueBrightness contributes to the initial selection; compare with this component disabled if parts are missed.
- HSLKeyer (KEY) / Matte Finesse / Black Clip
0Inspect the sampled range before adding a lower clip to its partial coverage.
- HSLKeyer (KEY) / Matte Finesse / White Clip
100This initial upper boundary retains partial coverage for edge inspection.
- HSLKeyer (KEY) / Output / Output
"Final Composite"After diagnostic viewing, restore the working RGBA output before Bitmap or Merge.
Reproduce the example
- Feed the source shot to HSLKeyer, the replacement to Merge.Background and the keyed output to Foreground.
A Fusion background replacement needs an explicit image branch.
Check: Check destination port names against the diagram and confirm each MediaIn shows its assigned source.
- Leave Invert disabled and drag the main eyedropper across the colored screen without crossing the subject.
Polarity determines which side stays opaque; the sampled range depends on the actual source.
Check: In Alpha Highlight B/W, the background is black and the subject white; meaningful edge coverage may remain gray.
- Refine the core with Add/Subtract Color Range and the transition with the separate Softness eyedroppers.
Expanding the color range and softening its boundary affect different parts of the key.
Check: Start at Black Clip 0 / White Clip 100. While cleaning noise with Matte Finesse, retain useful partial coverage, hair or thin tubes.
- Restore Output = Final Composite and inspect Merge over the replacement background.
The black-and-white diagnostic mode serves selection; the final composite reveals edge behavior in context.
Check: The replacement shows through transparent regions. Check keyed Alpha and host-specific Use Alpha availability if RGB looks correct but the background remains hidden.
- Inspect frames 0, 48 and 95, then play the full short shot at working resolution.
One successful frame does not reveal key chatter, lighting changes or a subject leaving the garbage matte.
Check: Compare RGB and Alpha in motion. If a garbage matte is needed, keep it wider than the target and verify its position throughout the shot.
Expected result
- MediaOut (OUT) · frame 48
The subject appears over the replacement background; edges are inspected without diagnostic output.
Alpha: At KEY the old background is transparent; Merge over an opaque replacement produces solid final Alpha.
When the result differs
- The opposite region was selected.
Cause: Invert is set to remove a sampled color when it should retain it, or vice versa.
Correction: Compare both Invert states in Alpha Highlight B/W using one clearly colored subject.
- The edge chatters or retains the old screen color.
Cause: Compression and a changing color range disturb the matte; RGB color contamination is distinct from an Alpha error.
Correction: Refine the matte with Pre Filter/Matte Finesse first, then correct RGB contamination separately. Aggressive clipping does not replace despill.
References
- Blackmagic Design · DaVinci Resolve 21 · HSLKeyer
Printed/PDF pages 3648–3650: sampling, Invert polarity, H/S/L selection, Matte Finesse and Output.
- Blackmagic Design — The Visual Effects Guide to DaVinci Resolve 20
Fusion image flow, Bitmap Alpha extraction, effect masks and Merge Background/Foreground.
Other outlines from the article
Local clothing color adjustment
Invert keeps the sampled clothing opaque; Bitmap extracts its Alpha to mask ColorCorrector.
- MediaIn → HSLKeyer → Bitmap (Alpha) → ColorCorrector.EffectMask
- MediaIn → ColorCorrector.Input
- ColorCorrector → MediaOut
A neon Glow source mask
Sampled neon is retained as white Alpha; Bitmap converts it to a mask for GlowMask.
- MediaIn → HSLKeyer → Bitmap (Alpha) → Glow.GlowMask
- MediaIn → Glow.Input
- Glow → MediaOut
Removing a simple colored background
The sampled background is removed with Invert off; the keyed image is composited over a replacement with Merge.
- MediaIn → HSLKeyer → Merge.Foreground
- Replacement → Merge.Background
- Merge → MediaOut
Mistakes
- Reversing Invert polarity: sampled colors are removed by default and retained as opaque with Invert.
- Treating Matte Finesse 1/2 as processing presets.
- Expecting Reset to reset every node setting, including prior refinement.
- Expanding Color Range when only Softness needs refinement.
- Increasing Clean White until hair and soft detail become solid.
- Raising White Clip to strengthen white when it needs to be lowered.
- Leaving Alpha Highlight B/W in the production RGB composite branch.
- Using the wrong channel when reading the HSLKeyer image in an Effect Mask, or assuming a special matte input has the same contract.
- Sending only keyed RGB through ColorCorrector and assuming it forms a proper local mask branch.
- Approving the key from one still frame against the gray diagnostic background.
Tips
- Use two clearly different colors to check polarity in Alpha.
- Build a stable inner selection before adding a separate soft transition.
- For a colored object with highlights, compare Hue plus Saturation against full HSL.
- Keep Pre Filter before sampling distinct from extracted-key Denoise and Post Filter.
- Preserve the original RGB branch when using the key as a grading mask.
- For neon Glow, use the GlowMask emitter mask when the light should spread freely.
- Check Garbage Matte throughout subject motion and allow room around its edges.
- Test the keyed foreground over white and dark backgrounds to reveal spill and premultiplication defects.
Workflow order
- Decide whether to remove the sampled background or retain the sampled object and set Invert deliberately.
- Connect the source image and establish a range with a sustained drag of the main eyedropper.
- In Alpha Highlight B/W, refine the core range with Add/Subtract Color Range.
- Adjust the transition separately with Add/Subtract Softness.
- Choose the required Hue/Saturation/Luminance components and recheck shadows and highlights.
- For noisy footage, compare Pre Filter and then modest Clean Black/White corrections.
- Only then adjust Clip, Blur Radius, In/Out Ratio and, if needed, the second Matte Finesse page.
- Exclude unrelated objects with Garbage Matte and check its position throughout the clip.
- Restore Final Composite; use Bitmap Channel = Alpha for a mask branch or Merge.Foreground for compositing.
- Inspect edges over light and dark backgrounds, then play the surrounding frames.
