Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/colormath/src/utils.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/src/utils.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