RGB Color Picker
A color picker that outputs hex, so you can stop squinting at #2F4F4F
- color
- value
Every ComfyUI workflow eventually needs a color, and the default way to supply one is to type a hex code into a text box and hope you remembered it right. This node gives you an actual palette to click on and hands the result to the rest of the graph as a string. It's the smallest node in the chflame163/ComfyUI_WordCloud pack and honestly the one you'll end up using outside word clouds entirely.
What it is
A frontend COLOR widget - the swatch picker - married to a one-function backend. It's a modified web extension originally from melMass's comfy_mtb pack, which is why the install step matters a little more here than for most nodes (see below). You pick a color on the palette, choose an output mode, and it outputs a single value string.
The input that matters
Just two: color (the swatch, default "white") and mode:
HEX- outputs the color as a hex string like#3F9D6B. This is the one you want for nearly everything, because that's the format most string-based inputs expect.DEC- outputs the three RGB channel values as a tuple of ints (0–255).
Where it shines in this pack: wire the HEX string straight into the Word Cloud node's background_color or contour_color inputs, and your cloud's outline and background will actually match the color you clicked instead of a guess. Outside the pack it's just a general-purpose color source - feed it into any node that takes a hex string.
Install and the restart gotcha
Same install as the rest of the pack - ComfyUI Manager, searching "WordCloud", or:
cd ComfyUI/custom_nodes
git clone https://github.com/chflame163/ComfyUI_WordCloud
cd ComfyUI_WordCloud
..\..\..\python_embeded\python.exe -m pip install -r requirements.txt
The catch: the color swatch isn't pure Python. The pack copies its mtb/*.js files into ComfyUI/web/extensions/mtb on startup, so if the node shows up but the swatch doesn't open, you didn't fully restart ComfyUI after installing. A clean restart fixes it.
Things to know before you hit a wall
- In
DECmode the output is declaredSTRINGbut actually comes back as a tuple of channel values. If whatever you're wiring into expects text, useHEX. - The node is marked as an output node, so its string also shows up in the UI - handy as a reference swatch while you adjust the rest of the workflow.
- It ships inside a word-cloud pack, but nothing about it is word-cloud-specific. Don't skip this one just because you never plan to generate a cloud.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| color | COLOR | white | — |
| mode | COMBO | 2 options: HEX, DEC |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| value | STRING | — |