API Reference

Returns an array of the red, green and blue values of a hexadecimal code

function hexToRgb(hex: string): [number, number, number]

// Example:

hexToRgb("#FF0000") //=> [255, 0, 0]