ComfyUI Node
Color Convert (Legacy)
A ComfyUI node in advanced/color with 5 inputs and 3 outputs.
Color Convert (Legacy)
- color_hex
- Hex
- Int
- RGB
◄from_modeauto►
◄manual_hex—►
◄color_int-1►
◄comma_separated—►
Categoryadvanced/color
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| from_mode | COMBO | auto | Select how to interpret the color input. 'Auto' will use the color picker input unless one of the other fields is filled in, in which case it will use the filled-in field based on the other options. The other modes will take precedence over the color picker input when their respective fields are filled in. |
| color_hex | COLOR | #FFFFFF | Select a color using the color picker. This input is used when 'from_mode' is set to 'auto' and no other manual inputs are provided. The selected color will be converted to hex, int, and string formats for output. |
| manual_hexopt | STRING | Enter a hex color code manually, e.g. #FF00FF. Takes precedence over the color picker input if 'from_mode' is set to 'Manual Hex #FFFFFF'. | |
| color_intopt | INT | -1-1–16777215 | Enter a color as an integer (0-16777215). Interpreted as 0xRRGGBB. Takes precedence over the color picker input if 'from_mode' is set to 'Int 0-16777215'. |
| comma_separatedopt | STRING | Enter a color as comma-separated RGB values (0-255), e.g. 255,0,255. Takes precedence over the color picker input if 'from_mode' is set to 'Comma separated 255,255,255'. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| Hex | STRING | — |
| Int | INT | — |
| RGB | STRING | — |