ComfyUI > Nodes > ComfyUI Custom Node Color > Hex Color Input

ComfyUI Node: Hex Color Input

Class Name

HexColorInput

Category
LovelyBBQ/Utils
Author
lovelybbq (Account age: 1605days)
Extension
ComfyUI Custom Node Color
Latest Updated
2026-01-02
Github Stars
0.02K

How to Install ComfyUI Custom Node Color

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

Hex Color Input Description

Facilitates HEX color input, validates format, defaults to black if invalid, aiding precise color use.

Hex Color Input:

The HexColorInput node is designed to facilitate the input of color values in the hexadecimal format, which is a common way to represent colors in digital design and web development. This node serves as a utility to ensure that the color input is correctly formatted and validated, providing a seamless experience for users who need to work with color data. By accepting a HEX color string, the node ensures that the input is a valid string and defaults to black (#000000) if the input is invalid or missing. This functionality is particularly useful for AI artists and designers who need to specify precise color values in their workflows, allowing them to easily integrate color data into their creative processes without worrying about format errors.

Hex Color Input Input Parameters:

hex_color

The hex_color parameter is a string input that represents the color in hexadecimal format. This parameter is crucial as it allows you to specify the exact color you wish to use in your project. The input should be a string starting with a # followed by six hexadecimal digits, which correspond to the red, green, and blue components of the color. The default value is #000000, which represents black. This parameter does not support multiline input, ensuring that only a single color value is entered. Providing a valid HEX color string ensures that the node functions correctly and returns the expected color value.

Hex Color Input Output Parameters:

HEX

The HEX output parameter returns the validated hexadecimal color string. This output is essential as it confirms the color value that has been processed by the node, ensuring that it is safe and correctly formatted. The output will be the same as the input if the input is valid; otherwise, it defaults to #000000. This output allows you to confidently use the color value in subsequent nodes or processes, knowing that it has been validated and is in the correct format.

Hex Color Input Usage Tips:

  • Always ensure that the hex_color input is a valid hexadecimal string starting with a # followed by six characters. This will prevent the node from defaulting to black.
  • Use this node when you need to input color values in a workflow that requires precise color specifications, such as digital art or design projects.

Hex Color Input Common Errors and Solutions:

Invalid HEX Color Format

  • Explanation: The input provided is not a valid hexadecimal color string. This can occur if the string does not start with a # or does not have exactly six hexadecimal digits following the #.
  • Solution: Ensure that the input string is in the correct format, starting with a # and followed by six valid hexadecimal characters (0-9, A-F).

Missing HEX Color Input

  • Explanation: No input was provided for the hex_color parameter, causing the node to default to #000000.
  • Solution: Provide a valid hexadecimal color string as input to ensure the node processes the desired color value.

Hex Color Input Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI Custom Node Color
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.

Hex Color Input