Skip to content

Color Remap

Node icon
Color

Shifts a single color to a target color while preserving luminance, acting as a surgical hue replacement.

The Color Remap node applied to a source image: original (left) and result (right).
Side-by-side comparison: the original image on the left and the same image after the Color Remap node on the right.

Color Remap finds pixels near a source color’s hue and shifts them toward a destination color. Hue Tolerance sets how wide the affected range is, and Feather softens the transition at its edges.

Unlike Palette Remap, which generates multiple variants, Color Remap produces one output with one color changed. Preserve Luminance is on by default, so shading and highlights stay intact.

Pins

ImageImage
InputRequired
MaskMask
InputOptional
ImageImage
Output

Color

SourceColor (RGB)
Default: rgb(200, 50, 50)

Color to match

DestColor (RGB)
Default: rgb(50, 100, 200)

Replacement color

Matching

Hue ToleranceNumber
Default: 30 Range: 1–90

Hue distance (degrees) around the source color to include

Min SaturationNumber
Default: 20 Range: 0–50

Minimum saturation for a pixel to be considered

FeatherNumber
Default: 0.20 Range: 0.00–1.00

Soft falloff at the tolerance boundary

Preserve LuminanceToggle
Default: true

Restore original luminance after the hue swap

Mask

Mask FromChoice
Default: Luminance
Color image connected to the mask input

How the connected color image is read as a mask

  • LuminanceRead the image's brightness as the mask. The default.
  • AlphaRead the image's transparency as the mask.
  • RedUse the red channel as the mask.
  • GreenUse the green channel as the mask.
  • BlueUse the blue channel as the mask.
Mask FitChoice
Default: None (native size)
Mask connected

How the mask is sized when it doesn't match the image

  • None (native size)Center the mask at its native size, with no resizing. Unmasked regions are unaffected.
  • StretchStretch the mask to exactly match the image dimensions. May distort the mask shape.
  • Fit (letterbox)Scale the mask to fit inside the image, preserving aspect ratio. Letterboxes where needed.
  • Fill (crop)Scale the mask to fill the image, preserving aspect ratio. Crops edges if aspect ratios differ.
  • Use the eyedropper to pick the exact source color from the image.
  • Raise Min Saturation to leave gray and neutral pixels alone even when they sit near the source hue.
  • Connect a mask to limit the replacement to part of the image.