String To Color
Last updated
Last updated
Converts a text representation of a color into a color object. This lets you transform hex codes, color names, or CSS color functions into usable color objects for your graph.
color
The color string to convert (e.g., "#FF0000", "red", "rgb(255,0,0)")
String
Yes
color
The parsed color as a color object
Color
Drag the String to Color node into your graph.
Connect a text string (like "#3366CC"
, "blue"
, or "hsl(210, 100%, 50%)"
) to the "color" input.
Run the graph—your output will be a color object that can be used with other color nodes.
The node accepts many formats: hex codes, color names, RGB, HSL, and more.
Use this to convert color data from APIs, user inputs, or imported design tokens.
Processing Input Data: Convert color strings from imported data files or API responses.
Design Token Import: Transform color tokens from text-based formats into usable color objects.
Dynamic Theming: Parse color strings from configuration files or user preferences.
: For converting color objects back to text representations.
: For building a color from individual channel values.