randomColor

Why does this ex­ist? There are lots of clever one-lin­ers for gen­er­at­ing ran­dom col­ors: '#' + Math.floor(Math.random()*16777215).toString(16); Un­for­tu­nately, this code nat­u­rally pro­duces murky greys, browns and greens. ran­dom­Color gen­er­ates at­trac­tive col­ors by de­fault. More specif­i­cally, ran­dom­Color pro­duces bright col­ors with...

We do not write or claim ownership of any of the articles featured on this website. Instead we aim to highlight them so you can read the full article at the original source. To finish reading this article, follow the continue reading link below. CONTINUE READING
Author: CSS-Tricks

CSS-Tricks, a web design community curated by Chris Coyier.

http://css-tricks.com/

Sign up to our newsletter

Don't worry, we won't give your email to any third parties
and you can unsubscribe at any time.