Skip to content

Palette From Image

Node icon
Color

Automatically extracts the dominant colors from any image, turning a reference photo into a usable palette.

Palette From Image uses k-means clustering to find the most prominent colors in an image. Specify how many colors to extract (2–32), and the algorithm finds the best representatives. The output is a Palette that can be wired directly into Palette Remap.

This is useful when you want to match an existing color scheme. Feed in a brand reference, a photo, or any image with the colors you want.

The Export Palette button in the properties panel saves the extracted colors to a .gpl, .ase, or .pal file, the same formats the Palette node exports. The button stays disabled until the node has produced a palette, so extract colors first, then export. This is handy for capturing a one-off palette pulled from a reference image and reusing it in other tools like GIMP, Krita, or Aseprite.

Pins

ImageImage
InputRequired
PalettePalette
Output

Palette

ColorsInteger
Default: 8 Range: 2–32

Number of palette colors extracted from the image

AttemptsInteger
Default: 3 Range: 1–10

K-means restart attempts

Output

Sort ByChoice
Default: Hue

How to order the output palette colors

  • HueSort extracted colors by hue — creates a rainbow-like order.
  • LuminanceSort from darkest to lightest color.
  • Saturation
  • FrequencySort by how common each color is — most dominant color first.
  • Use more attempts for better color selection. The algorithm runs k-means multiple times and picks the best result.
  • SortBy has four options: Hue for a natural rainbow order, Luminance for light-to-dark, Saturation for vivid-to-muted, or Frequency to see the most common colors first.
  • Feed in a brand guide screenshot to automatically extract brand colors for variant generation.