Color To Hex
A color as a hex code, such as #ff8000.
Node id color/to-hex
The Color To Hex node outputs color as text in the #rrggbb form used
by CSS and design tools: red, green and blue, two hexadecimal digits each.
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| color | Color | { r: 0, g: 0, b: 0, a: 1 } |
Outputs
| Name | Type | Notes |
|---|---|---|
| hex | string |
Behaviour
- Rounded. Channels are rounded to whole numbers and limited to 0 to 255 (blended colors can have fractional channels).
- No opacity. The opacity isn't part of the code.
- Default. An unset
coloris black,#000000.
Related nodes
- Color From Hex: the reverse, creating a color from a hex code.
- Equals String: compares two codes.
- Color To HSL: the color as numbers.