JSFiddle - React, Tailwind, and code Playground
by neonDog
JavaScript
var colors = [];
while (colors.length < 50) {
do {
var color = Math.floor((Math.random()*1000000)+1);
} while (colors.indexOf(color) >= 0);
colors.push("#" + ("000000" + color.toString(16)).slice(-6));
}
console.log(colors);