Случайный цвет

Данный код генерирует случайный цвет в формате RGB.

function randColor() {
    var r = Math.floor(Math.random() * (256)),
        g = Math.floor(Math.random() * (256)),
        b = Math.floor(Math.random() * (256));
    return '#' + r.toString(16) + g.toString(16) + b.toString(16);
}


randColor(); // #2d796
randColor(); // #7dadba
randColor(); // #527acf