Here’s a quicky (there is a PHP version<\/a> too):<\/p>\n
var randomColor = Math.floor(Math.random()*16777215).toString(16);<\/code><\/pre>\n\n See the Pen
\n Generate New Random Hex Color with JavaScript<\/a> by Chris Coyier (@chriscoyier<\/a>)
\n on CodePen<\/a>.<\/span>\n<\/p>\nIf you’d prefer they are a bit more pleasing or need to generator colors that work together, we have an article about that<\/a>. <\/p>\n","protected":false},"excerpt":{"rendered":"