Skip to content

Instantly share code, notes, and snippets.

@codejets
Created November 22, 2016 12:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save codejets/33e6bf771a70c7cf75eb50dfafe8edec to your computer and use it in GitHub Desktop.
random hex color codes
Easily generate a random hex color in JS:
"#" + Math.floor(Math.random() * 16777215).toString(16).toUpperCase();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment