get-random-color-hex

Get a random color hex or color name using this package

Usage no npm install needed!

<script type="module">
  import getRandomColorHex from 'https://cdn.skypack.dev/get-random-color-hex';
</script>

README

Get a random color hex

Usage:

const ran = require("get-random-color-hex").hex;
console.log(ran)
// #FF0000

const ran = require("get-random-color-hex").color;
console.log(ran)
// Red

/*
----------------------
This next one gets a random color and gets a website with the random hex
*/

const ran = require("get-random-color-hex").colorwebsite;
console.log(ran)
// https://www.color-hex.com/color/ff0000

GitHub: https://github.com/noahalma/get-random-color-hex/