Hex Color Swatch 🦬
A color node with no output wires — just swatches on screen
Some nodes exist to show you things, not to compute them. Hex Color Swatch is one of those - you type a list of hex codes and it renders them as colored swatches in the ComfyUI UI so you can actually see the palette you're about to use. That's the entire job, and for palette work it's genuinely nice to have.
It lives in Sokes Nodes 🦬, the same pack that brings you Random Hex Color and Hex to Color Name - so the flow is: generate a palette, see it here, feed the names into your prompt. The pack clearly thinks about color as a first-class workflow concern, and this is the visual feedback loop for that.
How it works
One input, no outputs:
- hex - comma-separated hex codes, e.g.
#FF6347, #4682B4, #32CD32. Up to 10 are rendered.
It splits on commas, normalizes what you give it - missing # gets added, 3-digit shorthand like #f00 expands to #ff0000 - and then pushes the colors to the UI. Anything malformed is silently skipped. Because there are no output wires, it's an output node: it terminates the branch it's on and exists purely for your eyeballs. Put it anywhere in a color workflow; it won't interfere with the data flow.
There's a small tasteful detail: it shares the same parsing conventions as the pack's other color nodes, so a palette you copy out of Random Hex Color drops straight in without reformatting.
Install
Standard Sokes Nodes 🦬 install - ComfyUI Manager, search "ComfyUI Sokes Nodes", Install, restart:
cd ComfyUI/custom_nodes
git clone https://github.com/m-sokes/ComfyUI-Sokes-Nodes.git
pip install -r requirements.txt
No models, no dependencies beyond the pack's normal requirements.
When you'd actually use it
Realistically this is a palette-development aid. If you're hand-picking brand colors, matching a reference image, or choosing custom_shapes_colors for the pack's Generate Random Background node, being able to look at the actual hues before committing is a small but real time-saver. It's also a decent sanity check after Random Hex Color spits out a neon or muted set - you can see in two seconds whether the "warm colors" palette is actually warm before it goes into a prompt.
It won't save you from colorblindness to your own prompts, but it will save you from misreading #552288 as a deep blue. It's purple, and now you can see it.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| hex | STRING | #FF6347, #4682B4, #32CD32 | — |
Outputs (0)
No outputs