π― RGB Color Input
The boring little node that keeps your colorway data clean
- R
- G
- B
- info
It parses "66, 17, 34" into three numbers. That's the whole job.
Not every node in a pack is a hero. This one is a parser: you give it a string like "66, 17, 34", it hands you the three integers 66, 17 and 34. It does no image processing, no AI, no magic. So why does it exist in a recolor pack? Because the colorway data in this pipeline lives as text - article spec sheets, JSON configs, spreadsheet columns - and the recolor nodes want separate R, G and B integers. This node is the adapter between the two, and it keeps your color values somewhere you can actually read them instead of buried in a node's widget.
Inputs and outputs
- rgb_string - comma-separated RGB, default
"128, 128, 128". That's the thing you actually change. - label - a name for the color, default
"Main". Purely for bookkeeping.
Outputs are R, G, and B as three separate INTs, plus an info STRING that's just the label and the parsed values ("Main: RGB(66,17,34)") - handy to wire into a text-display node or leave dangling for your own reference.
The natural wiring: RGBColorInput β the target_r / target_g / target_b inputs on Direct Replace Recolor, Statistical Transfer, or Percentile Map. Do it once and the color is defined in one place, not as three hardcoded widgets.
The edge cases (there aren't many)
It splits on commas and takes exactly three values, so "66,17,34" works and "66;17;34" or "red, green, blue" throws a ValueError. When you're scripting colorways from an API or a config file, make sure the string is comma-separated and trim any spaces - the node handles surrounding whitespace fine, but it can't guess a missing value.
One genuinely useful trick: because it's a string input, you can drive it from a JSON loader or a text field rather than hardcoding. For batch colorway work, though, the Batch Colorway Processor's JSON is the better home for this data - this node is for the single-zone workflows where you want the color visible and editable in the graph.
Install
Identical to every node in the pack:
cd ComfyUI/custom_nodes
git clone https://github.com/benjamin-bertram/ComfyUI-Recolor
cd ComfyUI-Recolor
pip install -r requirements.txt
Restart ComfyUI, or grab it from Manager by searching "ComfyUI-Recolor". No models, no extra downloads, no gotchas - for this one the simplest node really is the simple one.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| rgb_string | STRING | 128, 128, 128 | β |
| label | STRING | Main | β |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| R | INT | β |
| G | INT | β |
| B | INT | β |
| info | STRING | β |