ComfyUI Node
Palette From Image
Extracts a color palette from an image using K-Means clustering. Modes: dominant — sort by pixel count (most common colors) vibrant — sort by saturation (most vivid colors) fashion_aware — greedy max-hue-distance selection Outputs individual color names, semantic role outputs, a palette preview swatch, and an annotated source image.
Palette From Image
- image
- 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
- source_annotated
- palette_info
◄num_colors5►
◄extraction_mode▾►
◄ignore_backgroundtrue►
◄ignore_skintrue►
◄sample_region▾►
◄saturation_threshold0.10►
◄include_neutralstrue►
◄include_metallicstrue►
◄seed0►
CategoryFVM Tools/Color
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | — | |
| num_colors | INT | 52–8 | — |
| extraction_mode | COMBO | 3 options: dominant, vibrant, fashion_aware | |
| ignore_background | BOOLEAN | true | — |
| ignore_skin | BOOLEAN | true | — |
| sample_region | COMBO | 4 options: full, center_crop, upper_half, lower_half | |
| saturation_threshold | FLOAT | 0.100–1 | — |
| include_neutrals | BOOLEAN | true | — |
| include_metallics | BOOLEAN | true | — |
| seed | INT | 00–4294967295 | — |
Outputs (17)
| Name | Type | Description |
|---|---|---|
| palette_string | STRING | — |
| color_1 | STRING | — |
| color_2 | STRING | — |
| color_3 | STRING | — |
| color_4 | STRING | — |
| color_5 | STRING | — |
| color_6 | STRING | — |
| color_7 | STRING | — |
| color_8 | STRING | — |
| primary | STRING | — |
| secondary | STRING | — |
| accent | STRING | — |
| neutral | STRING | — |
| metallic | STRING | — |
| palette_preview | IMAGE | — |
| source_annotated | IMAGE | — |
| palette_info | STRING | — |