ComfyUI > Nodes > Easy Color Correction > Color Palette Extractor

ComfyUI Node: Color Palette Extractor

Class Name

ColorPaletteExtractor

Category
itsjustregi / Easy Color Corrector
Author
Regi E (Account age: 5166days)
Extension
Easy Color Correction
Latest Updated
2025-06-30
Github Stars
0.11K

How to Install Easy Color Correction

Install this extension via the ComfyUI Manager by searching for Easy Color Correction
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Easy Color Correction in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Color Palette Extractor Description

Extract color palette from images for color correction and artistic inspiration, with histogram visualization and palette image generation.

Color Palette Extractor:

The ColorPaletteExtractor is a powerful tool designed to extract a color palette from an image, which can be used as a reference for color correction and artistic inspiration. This node is particularly beneficial for artists and designers who wish to analyze the dominant colors within an image and utilize them for creative projects. By generating a color palette, histogram visualization, and a palette image, the ColorPaletteExtractor provides a comprehensive overview of the color composition of an image. This functionality is essential for tasks such as color grading, mood board creation, and ensuring color consistency across different visual elements. The node is designed to be user-friendly, making it accessible to those without a technical background, while still offering advanced features for more experienced users.

Color Palette Extractor Input Parameters:

image

The image parameter is the primary input for the ColorPaletteExtractor, representing the image from which the color palette will be extracted. This parameter is crucial as it determines the source of the color data that will be analyzed and processed. The image should be provided in a compatible format, typically as a tensor, to ensure accurate extraction of color information.

palette_size

The palette_size parameter specifies the number of dominant colors to extract from the input image. This parameter allows you to control the granularity of the color palette, with a higher number resulting in a more detailed palette. The default value is 8, but it can be adjusted based on the desired level of detail and the complexity of the image's color composition.

extract_palette

The extract_palette parameter is a boolean flag that determines whether the color palette extraction process should be executed. When set to True, the node will perform the extraction and generate the corresponding outputs. If set to False, the node will return default or empty outputs, effectively bypassing the extraction process. This parameter is useful for toggling the functionality on and off as needed.

Color Palette Extractor Output Parameters:

palette_data

The palette_data output provides a string representation of the extracted color palette, typically in hexadecimal format. This data is essential for understanding the specific colors present in the image and can be used for further analysis or as a reference for color matching and correction tasks.

histogram

The histogram output is an image that visualizes the distribution of colors within the input image. This visualization helps in understanding the prominence and frequency of different colors, providing insights into the overall color balance and aiding in decision-making for color adjustments.

palette_image

The palette_image output is a visual representation of the extracted color palette, displaying the dominant colors in a structured format. This image serves as a quick reference for the extracted colors and can be used in design applications to ensure color consistency and harmony.

Color Palette Extractor Usage Tips:

  • To achieve a more detailed color palette, increase the palette_size parameter, especially for images with complex color compositions.
  • Use the extract_palette parameter to toggle the extraction process, allowing you to quickly switch between analyzing different images without unnecessary processing.
  • Consider using the histogram output to gain insights into the color distribution, which can inform decisions on color grading and adjustments.

Color Palette Extractor Common Errors and Solutions:

⚠️ Histogram generation disabled - missing OpenCV

  • Explanation: This error occurs when the advanced histogram generation feature is disabled due to the absence of the OpenCV library.
  • Solution: Install the OpenCV library to enable advanced histogram generation, or use the simple fallback histogram provided by the node.

❌ Color Palette Extractor error: <error_message>

  • Explanation: This is a generic error message indicating that an unexpected issue occurred during the color palette extraction process.
  • Solution: Check the input image format and ensure it is compatible. Review any additional error details provided in the traceback to identify and resolve the specific issue.

Color Palette Extractor Related Nodes

Go back to the extension to check out more related nodes.
Easy Color Correction
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.