> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# ColorToRGBInt - ComfyUI Built-in Node Documentation

> Complete documentation for the ColorToRGBInt node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/ColorToRGBInt/en.md)

The ColorToRGBInt node converts a color specified in a hexadecimal format into a single integer value. It takes a color string like `#FF5733` and calculates the corresponding RGB integer by combining the red, green, and blue components.

## Inputs

| Parameter | Data Type | Required | Range | Description                                        |
| --------- | --------- | -------- | ----- | -------------------------------------------------- |
| `color`   | STRING    | Yes      | N/A   | A color value in the hexadecimal format `#RRGGBB`. |

**Note:** The input `color` string must be exactly 7 characters long and start with a `#` symbol, followed by six hexadecimal digits (e.g., `#FF0000` for red). The node will raise an error if the format is incorrect.

## Outputs

| Output Name | Data Type | Description                                                                                                 |
| ----------- | --------- | ----------------------------------------------------------------------------------------------------------- |
| `rgb_int`   | INT       | The calculated RGB integer value. This is derived from the formula: `(Red * 65536) + (Green * 256) + Blue`. |
