Nodes/ComfyUI LC123 Nodes/🎨LC Color Palette
ComfyUI Node

🎨LC Color Palette

Turn a color story into prompt words

By lonecatone23Β·Created 2 months agoΒ·Updated 3 days agoΒ· 18
🎨LC Color Palette
  • image
  • prompt
  • preview
β—„modepresetβ–Ί
β—„presetVibrant Primaryβ–Ί
β—„num_colors4β–Ί

Prompts are bad at describing color. "Warm sunset tones" gets you a coin flip; a hex palette gets you what you meant. LC Color Palette (LCColorPalette) is the LC123 pack's bridge between color and prompt: it spits out a comma-separated string of hex colors that you can drop straight into a prompt, or feed into the pack's Prompt Builder stack.

It's part of the LC123/prompt category, sitting right where the README's Prompt Builder diagram puts it - palette feeds the LC Prompt Assembler, which stacks subjects, scene, camera, lighting, style, and palette into one prompt string.

How it works

Two modes, one switch:

  • preset - pick from 8 built-in palettes: Vibrant Primary, Warm Sunset, Cool Ocean, Earth Neutral, Monochrome, Pastel Soft, Neon Night, Forest. Zero setup, good for quick mood words.
  • from_image - plug an image into the optional image socket and the node samples the dominant colors out of it. This is the one you want when a reference photo has exactly the mood you're after and you don't want to name it.

num_colors (4–6) decides how many colors to use or sample. That's the only real knob - 4 is usually plenty for a prompt; 6 if you're chasing a specific gradient.

The node has two outputs:

  • prompt (STRING) - the hex list, e.g. #FF6B35, #F7C948, .... Wire this into LC Prompt Assembler's palette input, or just read it and paste it into your CLIP text encoder.
  • preview (IMAGE) - a swatch strip so you can actually see the palette on the canvas instead of trusting hex.

Why you'd bother

Two good reasons. First, prompt-to-color is genuinely unreliable, and hex words travel better - people have had real luck writing color hexes into prompts as a style signal, and this gives you the words without hunting in Photoshop. Second, if you're already using the LC123 Prompt Builder for structured prompts (subject + scene + palette assembling into one string), this node is the designed-in missing piece.

If you're just trying to steer a single generation, honestly, you can read the prompt output and paste - but keeping it wired means changing the preset updates the whole chain, which is the point of a builder.

Install

ComfyUI Manager (search ComfyUI_LC123_nodes) or:

cd ComfyUI/custom_nodes
git clone https://github.com/lonecatone23/ComfyUI_LC123_nodes

Restart. No extra pip packages, no model files - it's pure string + color math.

Where people get burned

The predictable one: from_image mode with no image plugged in silently falls back to the preset palette, so if your sampled colors look like a preset you recognize, check that the image is actually wired. And remember hex colors in a prompt are a nudge, not a contract - diffusion treats them loosely, so pair the palette with explicit color words ("muted teal and warm amber") rather than relying on the hexes alone.

CategoryLC123/prompt

Inputs (4)

NameTypeDefaultDescription
modeCOMBOpresetpreset = built-in palette. from_image = sample from the input image.
presetCOMBOVibrant PrimaryNamed palette when mode is preset.
num_colorsINT44–6How many colors to use or sample (4–6).
imageoptIMAGESource image when mode is from_image.

Outputs (2)

NameTypeDescription
promptSTRINGβ€”
previewIMAGEβ€”