Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/colormath/src/utils.ts>randomHex

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

Returns a random color in the form of formatted hex.

Examples

randomHex(); // '#01060e'

Returns

string