Image Constant Color (HSV)
Solid colors picked by feel, not by juggling three RGB channels
- IMAGE
Picking a specific color by adjusting red, green, and blue independently is fiddly - you rarely think in RGB, you think "a bit more orange" or "less saturated." Image Constant Color (HSV) is the RGB-sibling ImageConstant node's counterpart, generating a solid-color image from hue/saturation/value instead - which maps much more directly to how people actually describe a color they want.
Same job, different color space. If you already know why you'd want a flat solid-color image (a chroma-key background, a color swatch to feed Color Match Image, a blank test canvas), this is the version to reach for when you're dialing a color in by eye rather than typing exact numbers.
The inputs
width/height(default 512, up to 8192).batch_size(default 1, up to 4096).hue,saturation,value(each default 0, range 0–1, step 0.001).
All three are floats in a 0–1 range - hue wraps around a full color wheel, so 0 and 1 are both red, ~0.33 is green, ~0.67 is blue, and so on.
The trap worth flagging up front: at the defaults, every setting is 0, and value: 0 means zero brightness - black - regardless of what hue or saturation you've set. If you type in a hue and get pure black out, you haven't set a color yet; you've set brightness to nothing. value is the first thing to raise.
One output: IMAGE.
How to install it
ComfyUI Manager: search "ComfyUI-Image-Filters", install, restart. Manual:
cd ComfyUI/custom_nodes
git clone https://github.com/spacepxl/ComfyUI-Image-Filters
restart ComfyUI. Dependency is opencv-contrib-python; a cv2 import error at startup is typically a conflicting opencv variant pulled in by another node pack, not this one - the author ships install.bat/import_error_install.bat for that on Windows, and the manual fix elsewhere is uninstalling stray opencv installs and reinstalling opencv-contrib-python on its own. No models, no meaningful compute cost.
Common issues & troubleshooting
Output is black no matter what hue you set. As above - value is still at its default of 0. Raise it; hue and saturation do nothing visible until there's brightness to show them against.
Trying to match an exact RGB hex value. HSV is the wrong tool for that - if you have a precise hex code you need to hit exactly, this pack's RGB sibling, Image Constant Color (RGB), is more direct (though remember its channels are 0–1 floats, not 0–255). Use this HSV node when you're picking a color by feel, the RGB one when you have an exact numeric target.
Colors look washed out or grayish. saturation is likely too low - at 0 you get pure grayscale regardless of hue, since saturation is what separates a color from a shade of gray. Push it up toward 1 for a fully saturated color.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| width | INT | 5121–8192 | — |
| height | INT | 5121–8192 | — |
| batch_size | INT | 11–4096 | — |
| hue | FLOAT | 0.0000–1 | — |
| saturation | FLOAT | 0.0000–1 | — |
| value | FLOAT | 0.0000–1 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |