Skip to main content
Sets the fill color of a Figma node. Works with text nodes and frame nodes.

Parameters

string
required
The ID of the node to modify
number
required
Red component (0-1 range)
number
required
Green component (0-1 range)
number
required
Blue component (0-1 range)
number
Alpha/transparency component (0-1 range). Defaults to 1 (fully opaque)
Figma uses RGBA values in the 0-1 range, not 0-255. For example, pure red is {r: 1, g: 0, b: 0}, not {r: 255, g: 0, b: 0}.

Response

Returns the name of the modified node and confirms the color change.

Examples

Set solid red fill

Set semi-transparent blue fill

Set white fill (default alpha)