import { hex } from "https://deno.land/x/a11y_color_contrast@v0.2.0/mod.ts";
Parse a string into a RGB color. Invalid input will return a [NaN, NaN, NaN]
RGB triplet. If the input can be malformed, check after parsing with the isValidColor
function.
import { hex } from "./parse.ts";
hex("#fff")
// [255, 255, 255]