ComfyUI Node

Color Picker

A color swatch you can actually click instead of typing hex codes blind

By akierson·Created 2 years ago·Updated 2 years ago· 2
Color Picker
  • color
  • color

Most color options in ComfyUI are plain text boxes: you stare at a #RRGGBB string and try to remember whether #4b8a2e is the green you wanted. The Color Picker node from the comfyui-colornodes pack replaces that with a big clickable color swatch. Click it, your OS's native color picker opens, you grab the color, and the node remembers it. That's the whole job - and for a lot of workflows, the whole job is enough.

Technically it's a source node, a primitive in ComfyUI speak. It doesn't transform anything; it just holds a COLOR value for other nodes to consume. Wire its color output into Color to RGB when something downstream wants integer channels, Color to Hex when you need the literal string, or straight into Image Replace Color as the target or replacement color. Because the value travels on its own distinct wire, you can see at a glance where color is flowing through a messy graph - one of those small quality-of-life wins that keeps big workflows readable.

Under the hood there's no magic new data type. A COLOR value is just a hex string; the swatch is frontend. The widget is ported from the comfy_mtb pack by Mel Massadian (MIT licensed), and it's basically the reason this pack exists - the whole library is built around making colors clickable instead of typed.

Inputs: just one - color (COLOR). Click the swatch, pick, done. Outputs: color (COLOR), ready to plug into anything that accepts a color.

Install. Two ways, both painless. With ComfyUI Manager, search "comfyui-colornodes" (it displays as ColorNodes), hit Install, and restart ComfyUI. Manually:

cd ComfyUI/custom_nodes
git clone https://github.com/akierson/comfyui-colornodes

Restart ComfyUI after cloning. There are no Python dependencies beyond what ComfyUI already ships - PIL, numpy, torch are all bundled, and there are no model files to download. In a world where most custom-node installs turn into a two-hour dependency hunt, this one is genuinely friction-free. It's MIT licensed and tiny, so it's a short read if you want to eyeball the source before trusting it - which you should do with any node, but here it's actually feasible.

Troubleshooting. The swatch defaults to #ff0000, bright red. If you load someone else's workflow and this node is red, that's the default value, not a bug. If a workflow references a COLOR input but you don't have this pack installed, the node shows up as missing - ComfyUI Manager's missing-node prompt is your fix. One thing that trips people: the swatch is a widget, and widgets get serialized into the workflow JSON. Right-click it and "Convert to input" and the picker disappears, replaced by a socket you have to feed from another color source. That's intentional, but it surprises people the first time.

Where people actually get burned is usually the other nodes in this pack, not this one. Color Picker is the easy part. It exists so you stop guessing hex values and start clicking colors.

Categoryutils/color

Inputs (1)

NameTypeDefaultDescription
colorCOLOR

Outputs (1)

NameTypeDescription
colorCOLOR