hexToRgb
Callable
Parameters
hex: string
The hexadecimal color code to convert.
Returns Rgb | null
An object containing the red, green, and blue values of the color, or null if the input is not a valid hexadecimal color code.
The hexadecimal color code to convert.
An object containing the red, green, and blue values of the color, or null if the input is not a valid hexadecimal color code.
Converts a hexadecimal color code to its RGB equivalent.