Skip to main content
Module

x/colormath/mod.ts>rawHex

A color conversion and color manipulation library written in typescript for Node.js, Deno and Browser 🎨.
Latest
function rawHex
import { rawHex } from "https://deno.land/x/colormath@1.2.4/mod.ts";

Extracts the raw hex from the hex string.

Examples

rawHex('1dc'); // '11ddcc' rawHex('#1dc'); // '11ddcc' rawHex('#11ddcc'); // '11ddcc'

Parameters

hex: string

The hex

Returns

string