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

NameTypeDefaultNotes
colorColor{ r: 0, g: 0, b: 0, a: 1 }

Outputs

NameTypeNotes
hexstring

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 color is black, #000000.
© 2026 Wirepaint