> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-feat-openapi-i18n.mintlify.site/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.

The **ColorToRGBInt** node converts a color specified in hexadecimal format (like `#FF5733`) into a single integer value. It takes the red, green, and blue components from the color string and combines them into one RGB integer, while also returning the original hexadecimal representation.

## Inputs

| Parameter | Description                                                                                              | Data Type | Required | Range |
| --------- | -------------------------------------------------------------------------------------------------------- | --------- | -------- | ----- |
| `color`   | A color value in the hexadecimal format `#RRGGBB`. Must be exactly 7 characters long and start with `#`. | STRING    | Yes      | N/A   |

**Note:** The input `color` string must follow the format `#RRGGBB` exactly. If the string is not 7 characters long or does not start with `#`, the node will raise an error.

## Outputs

| Output Name | Description                                                                                                 | Data Type |
| ----------- | ----------------------------------------------------------------------------------------------------------- | --------- |
| `rgb_int`   | The calculated RGB integer value. This is derived from the formula: `(Red * 65536) + (Green * 256) + Blue`. | INT       |
| `hex`       | The original hexadecimal color string in the format `#RRGGBB`.                                              | STRING    |

> 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)

***

**Source fingerprint (SHA-256):** `7ab6b8452b71d47e5b38d75c9b60d90d73c6b24e02d2c7d3694e05e1b2818edc`
