Nodes/ComfyUI/Recraft Color RGB
ComfyUI Node Runs on cloud

Recraft Color RGB

The local helper node that builds a color for Recraft

By Comfy-Org·Created 4 years ago·Updated about 16 hours ago· 129,964
Recraft Color RGB
  • recraft_color
  • recraft_color
r0
g0
b0

The name is a small lie, in the best way: Recraft Color RGB doesn't call any API, needs no credits, and doesn't generate anything. It's a local utility node that takes three integers - red, green, blue - and produces a RECRAFT_COLOR value, which is a typed object that the Recraft generation nodes consume. It's the plumbing under Recraft's color control, exposed as a node so you can build palettes graphically.

If you've been using ComfyUI for a while, the pattern is familiar: this is a "helper" node, the same idea as a primitive or a text box - it exists to feed something downstream, and it costs nothing to run. You won't use it standalone; you'll use it to hand colors to the nodes that actually talk to Recraft.

How it works

Three integer inputs (r, g, b, each 0–255, defaulting to black), one typed output. The node holds a small chain: you can also feed an existing recraft_color in and it appends to it, so you can stack multiple color values into one chain. Everything happens locally, instantly, free.

Where it feeds

The RECRAFT_COLOR output is what Recraft's actual generation nodes accept for color control. Most directly, it plugs into Recraft Controls, which bundles colors into a RECRAFT_CONTROLS object for the text-to-image and related Recraft API nodes. So the practical wiring is: Recraft Color RGB → Recraft Controls → Recraft V3 Text to Image.

The inputs that matter

  • r / g / b - 0 to 255 each. Pick values like any color picker; there's no hex shorthand, so if you're coming from CSS you'll be converting, or using one of the many RGB-from-hex helper workflows floating around.

Output is recraft_color (RECRAFT_COLOR).

Where people get burned

  • Looking for an API call. There is none - no credits, no account needed for this node itself. If it's erroring, it's not a billing problem.
  • Connecting it to the wrong place. The color type only fits Recraft's RECRAFT_COLOR inputs. It won't connect to a generic IMAGE or STRING input, and you can't drop it straight into a sampler.
  • Expecting the chain to be a list. The chain appends colors in order, which is fine for simple palettes; for elaborate ones, multiple color nodes into one Controls node is the way to go.
Categorypartner/image/Recraft

Inputs (4)

NameTypeDefaultDescription
rINT00–255Red value of color.
gINT00–255Green value of color.
bINT00–255Blue value of color.
recraft_coloroptRECRAFT_COLOR

Outputs (1)

NameTypeDescription
recraft_colorRECRAFT_COLOR