> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-docs-recommend-assets-api.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.

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/ColorToRGBInt/zh.md)

该节点将十六进制格式指定的颜色转换为单个整数值。它接收类似 `#FF5733` 的颜色字符串，并通过组合红、绿、蓝分量来计算相应的 RGB 整数。

## 输入参数

| 参数名     | 数据类型   | 必填 | 取值范围 | 描述                     |
| ------- | ------ | -- | ---- | ---------------------- |
| `color` | STRING | 是  | 不适用  | 十六进制格式 `#RRGGBB` 的颜色值。 |

**注意：** 输入的 `color` 字符串必须恰好为 7 个字符长，并以 `#` 符号开头，后跟六个十六进制数字（例如，红色为 `#FF0000`）。如果格式不正确，节点将引发错误。

## 输出参数

| 输出名称      | 数据类型 | 描述                                                               |
| --------- | ---- | ---------------------------------------------------------------- |
| `rgb_int` | INT  | 计算得到的 RGB 整数值。该值由公式 `(Red * 65536) + (Green * 256) + Blue` 推导得出。 |
