Skip to main content
variable hexToRGB2
import { hexToRGB2 } from "https://deno.land/x/30_seconds_of_typescript@v1.0.1/util.ts";

Converts a color code to a rgb() or rgba() string if alpha value is provided.

Same as hexToRGB but using chunk

type

(hex: string) => unknown