ComfyUI > Nodes > ComfyUI-APQNodes > ColorPalette

ComfyUI Node: ColorPalette

Class Name

ColorPalette|AIPOQUE

Category
APQNodes/Color
Author
AIPOQUE (Account age: 140days)
Extension
ComfyUI-APQNodes
Latest Updated
2024-11-21
Github Stars
0.08K

How to Install ComfyUI-APQNodes

Install this extension via the ComfyUI Manager by searching for ComfyUI-APQNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-APQNodes 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

ColorPalette Description

Assists AI artists in visualizing and selecting color palettes based on input hex codes for creative projects.

ColorPalette| ColorPalette:

The ColorPalette| ColorPalette node is designed to assist AI artists in selecting and visualizing color palettes based on a set of input hex color codes. This node's primary function is to analyze the provided hex codes, compare them against a predefined list of colors, and determine the closest matching colors. It then generates a visual representation of these colors, allowing artists to see how their chosen palette might look in practice. This can be particularly useful for artists looking to maintain color consistency across their projects or explore new color combinations. By providing a clear visual output, the node helps streamline the creative process, making it easier to experiment with and refine color choices.

ColorPalette| ColorPalette Input Parameters:

prompt

The prompt parameter is a text input that allows you to provide a descriptive context or theme for the color palette you are working with. This can be a simple phrase or a detailed description that helps guide the color selection process. While it does not directly affect the color matching algorithm, it is included in the final output to provide context for the generated palette.

hexcodes

The hexcodes parameter is a string input containing one or more hex color codes, separated by spaces or new lines. These codes represent the colors you wish to analyze and match against the predefined color list. The node processes these codes to find the closest matching colors, which are then used to create the visual output. There are no specific minimum or maximum values, but the input should be valid hex color codes.

ColorPalette| ColorPalette Output Parameters:

text_out

The text_out parameter is a string output that combines the original prompt with a statement listing the colors that have been matched and restricted based on the input hex codes. This output provides a textual summary of the color matching process, including the names of the closest colors found.

image_out

The image_out parameter is a visual output in the form of an image tensor. It represents the matched color palette as a series of colored rectangles, each corresponding to one of the closest colors identified from the input hex codes. This visual representation helps you quickly assess the aesthetic and harmony of the selected colors.

ColorPalette| ColorPalette Usage Tips:

  • To achieve the best results, ensure that the hexcodes input contains valid and correctly formatted hex color codes. This will help the node accurately match and visualize the colors.
  • Use the prompt parameter to provide context or a theme for your color palette, which can be helpful when reviewing the text_out output for consistency with your creative vision.

ColorPalette| ColorPalette Common Errors and Solutions:

Invalid hex code format

  • Explanation: This error occurs when the hexcodes input contains improperly formatted hex color codes.
  • Solution: Ensure that each hex code is a valid six-character string, starting with a # symbol, followed by three pairs of hexadecimal digits.

No matching colors found

  • Explanation: This error may arise if the input hex codes do not closely match any colors in the predefined list.
  • Solution: Double-check the hex codes for accuracy and consider using more common or standard colors that are likely to have close matches in the list.

ColorPalette Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-APQNodes
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 Playground, enabling artists to harness the latest AI tools to create incredible art.