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.

Pins

ImageImage
InputRequired
ImageImage
Output
MaskMask
Output

Color Range

ColorColor (RGBA)
Default: rgba(255, 0, 0, 255)

Target color

ToleranceNumber
Default: 30 Range: 0–100

HSL distance within which pixels are selected

SoftnessNumber
Default: 10 Range: 0–100

Edge softness at the tolerance boundary

Weights

Hue WeightNumber
Default: 100 Range: 0–100

Weight of hue distance in selection metric

Saturation WeightNumber
Default: 50 Range: 0–100

Weight of saturation distance in selection metric

Lightness WeightNumber
Default: 25 Range: 0–100

Weight of lightness distance in selection metric

Refine

FeatherNumber · px/%
Default: 0.0 Range: 0.0–50.0 px / 0–100%

Gaussian feather on the resulting mask

InvertToggle
Default: false

Invert the resulting mask

  • 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.