Nodes/MdColorMod/Color Hue-Saturation (MD)
ComfyUI Node

Color Hue-Saturation (MD)

Adjusts master and per‑colour hue, lightness, and saturation of an image. The adjustment is driven by a 7×3 matrix (`jdata`) that provides master and six per‑hue shifts (Red, Yellow, Green, Cyan, Blue, Magenta). An `Overlap` parameter controls how much neighbouring hues are affected (0 = hard edges, 100 = broad blending). A luminance‑based `mask` can optionally limit the effect to certain areas. Works on both RGB and RGBA images; when alpha is present it is left untouched.

By MdONeilsl·Created 2 months ago·Updated about a month ago· 0
Color Hue-Saturation (MD)
  • image
  • mask
  • image
colorMaster
Overlap0.0
Hue0.0
Lightness0.0
Saturation0.0
jdata[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]]
Categorymd/image/color

Inputs (8)

NameTypeDefaultDescription
imageIMAGEInput image tensor (RGB or RGBA).
colorCOMBOMasterSelect a specific hue band for the slider controls (overridden by jdata if valid).
OverlapFLOAT0.00–100Overlap spread percentage (0-100) for blending neighbouring hues.
HueFLOAT0.0-180–180Hue shift for the selected hue band (ignored if jdata is used).
LightnessFLOAT0.0-100–100Lightness shift for the selected hue band (ignored if jdata is used).
SaturationFLOAT0.0-100–100Saturation shift for the selected hue band (ignored if jdata is used).
jdataSTRING[[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0],[0,0,0]]JSON string representing a 7×3 matrix of [Hue, Lightness, Saturation] adjustments for Master and six hues.
maskoptMASKOptional mask to restrict the adjustment area.

Outputs (1)

NameTypeDescription
imageIMAGEThe hue/saturation adjusted image.