Skip to content
Math & Text hexToRgb

$hexToRgb — Converts HEX colors to a list of RGB values.

Converts HEX colors to a list of RGB values.

Syntax

$hexToRgb[hex]

Parameters

  • hex (String, required) — Colors like #ff0000 or #f00

Return Value

  • String.

Usage

$hexToRgb[hex] → result

Example

$sendMessage[$hexToRgb[hex]]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.