Skip to content

Color Range

Node icon
Mask

Creates a mask by selecting pixels similar to a picked color, with adjustable hue, saturation, and lightness weighting.

Color Range selects pixels based on their proximity to a chosen color in HLS (Hue, Lightness, Saturation) color space. Use the eyedropper to pick a color from the input, and the node generates a grayscale mask where white represents selected pixels and black represents unselected.

Tolerance controls how far from the center color the selection extends. Softness adds a gradual falloff at the selection boundary. The three weight sliders (Hue, Saturation, Lightness) control how much each color component contributes to the distance calculation. Crank Hue Weight to select by color regardless of brightness, or boost Lightness Weight to select by brightness regardless of hue.

Color Range

ColorColor (RGB)
Default: rgb(255, 0, 0)

Center color to select

ToleranceNumber
Default: 30.0 Range: 0–100

Selection radius in HLS space; higher = selects more

SoftnessNumber
Default: 10.0 Range: 0–100

Edge falloff at selection boundary; 0 = hard, 100 = soft

Weights

Hue WeightNumber
Default: 100.0 Range: 0–100

Hue contribution; high = select by color regardless of brightness

Saturation WeightNumber
Default: 50.0 Range: 0–100

Saturation contribution to selection

Lightness WeightNumber
Default: 25.0 Range: 0–100

Lightness contribution; high = select by brightness

Refine

Feather pxNumber · px/%
Default: 0.0 Range: 0.0–50.0

Gaussian blur on mask edges

InvertToggle
Default: false

Invert selection: keeps everything except picked color

Notes

Preview auto-shows the upstream source image while the eyedropper is active so users can pick directly from the input.

  • Use the eyedropper to pick the center color directly from the preview image.
  • Increase Tolerance for a broader selection; decrease for a tighter, more precise pick.
  • Set Hue Weight high and Lightness Weight low to select all shades of a color regardless of brightness.
  • Add Feather to soften the mask edges for smoother compositing results.