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

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

## 输入

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

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

## 输出

| 输出名称      | 描述                                                           | 数据类型 |
| --------- | ------------------------------------------------------------ | ---- |
| `rgb_int` | 计算出的 RGB 整数值。该值通过以下公式得出：`(红色值 * 65536) + (绿色值 * 256) + 蓝色值`。 | INT  |

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

***

**Source fingerprint (SHA-256):** `5b8617d6b28caaa5f01dad1c6a302fa321f1bd53a0454451d468e36747e70e8f`
