> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-partner-nodes-consolidate.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ColorToRGBInt - ComfyUI Built-in Node Documentation

> The ColorToRGBInt node converts a color given in hexadecimal format (like FF5733) into a single RGB integer value.

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

## Inputs

| Parameter | Description                                                                                                          | Data Type | Required | Range                      |
| --------- | -------------------------------------------------------------------------------------------------------------------- | --------- | -------- | -------------------------- |
| `color`   | A color value in the hexadecimal format `#RRGGBB` or `#RRGGBBAA`. Must be 7 or 9 characters long and start with `#`. | COLOR     | Yes      | `#RRGGBB`<br />`#RRGGBBAA` |

**Note:** The input `color` string must follow the format `#RRGGBB` or `#RRGGBBAA`. If it is not 7 or 9 characters long, does not start with `#`, or contains invalid hexadecimal characters, the node raises an error.

## Outputs

| Output Name | Description                                                                                                                                                     | Data Type |
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
| `rgb_int`   | The calculated RGB integer value, derived from the formula: `(Red * 65536) + (Green * 256) + Blue`.                                                             | INT       |
| `hex`       | The hexadecimal color string in the format `#RRGGBB`. If the input included an alpha channel, it is removed from this output.                                   | COLOR     |
| `alpha`     | The alpha (opacity) value between 0.0 and 1.0. Equals 1.0 when the input is `#RRGGBB`, or the alpha channel value divided by 255 when the input is `#RRGGBBAA`. | FLOAT     |

> 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):** `4e64616d168beee73bca4364d47e2a089418b5046a76bfcfa061dfab9a5e49ed`
