Nodes/comfyui-fvmtools/Color Palette Generator
ComfyUI Node

Color Palette Generator

Generates a harmonious named color palette. Outputs individual color names, semantic role outputs, a preview image, and a comma-separated palette_string for Prompt Color Replace.

By ping1979ping·Created 5 months ago·Updated 2 months ago· 0
Color Palette Generator
    • palette_string
    • color_1
    • color_2
    • color_3
    • color_4
    • color_5
    • color_6
    • color_7
    • color_8
    • primary
    • secondary
    • accent
    • neutral
    • metallic
    • palette_preview
    • palette_info
    seed0
    num_colors5
    harmony_type
    style_preset
    vibrancy0.50
    contrast0.50
    warmth0.50
    neutral_ratio0.4
    include_metallicstrue
    palette_source
    wildcard_file
    palette_index-1
    CategoryFVM Tools/Color

    Inputs (12)

    NameTypeDefaultDescription
    seedINT00–4294967295Random seed for deterministic palette generation. Same seed + same settings = same palette every time.
    num_colorsINT52–8Number of colors to generate (2-8). 5 is recommended — maps to the semantic roles: primary, secondary, accent, neutral, metallic. Extra colors are available as color_6, color_7, color_8.
    harmony_typeCOMBOColor harmony algorithm for hue selection. auto — picks a harmony type based on seed analogous — neighboring hues (calm, cohesive) complementary — opposite hues (bold contrast) split_complementary — one hue + two adjacent opposites triadic — three evenly spaced hues (vibrant) tetradic — four hues in two complementary pairs monochromatic — single hue, varied lightness/saturation
    style_presetCOMBOVisual style that influences color selection. Each preset defines preferred hue ranges, saturation, and lightness profiles. E.g. 'pastel' favors light desaturated colors, 'gothic' favors dark reds/purples/blacks.
    vibrancyFLOAT0.500–1Color saturation intensity. 0.0 = muted, desaturated (grays, pastels) 0.5 = balanced (default) 1.0 = vivid, highly saturated colors
    contrastFLOAT0.500–1Lightness spread between colors. 0.0 = all colors at similar brightness 0.5 = moderate light/dark variation (default) 1.0 = maximum spread (very light + very dark colors)
    warmthFLOAT0.500–1Color temperature bias. 0.0 = cool (blues, greens, purples) 0.5 = neutral (default) 1.0 = warm (reds, oranges, yellows)
    neutral_ratioFLOAT0.40–1Proportion of neutral/muted colors in the palette. 0.0 = all colors are chromatic (vibrant) 0.4 = ~40% neutrals like gray, beige, cream (default) 1.0 = mostly neutrals (subdued palette)
    include_metallicsBOOLEANtrueInclude metallic colors (gold, silver, bronze, rose-gold, etc.). When enabled, one palette slot is reserved for a metallic color and output as the 'metallic' role. Useful for jewelry/accessories.
    palette_sourceoptCOMBOgenerate — create palette from seed + settings (default) from_file — pick a palette from the wildcard_file text below
    wildcard_fileoptSTRINGManual palette list (one per line, comma-separated color names). Only used when palette_source = 'from_file'. Example: navy-blue, soft-pink, charcoal, gold, cream forest-green, burgundy, tan, silver, ivory Use palette_index to pick a specific line, or -1 for random by seed.
    palette_indexoptINT-1-1–9999Which line to pick from wildcard_file. -1 = random line based on seed (default) 0+ = specific line number (wraps around if too large)

    Outputs (16)

    NameTypeDescription
    palette_stringSTRING
    color_1STRING
    color_2STRING
    color_3STRING
    color_4STRING
    color_5STRING
    color_6STRING
    color_7STRING
    color_8STRING
    primarySTRING
    secondarySTRING
    accentSTRING
    neutralSTRING
    metallicSTRING
    palette_previewIMAGE
    palette_infoSTRING