Potresti scrivere la parte del body con l'elemento "quote" a cui vuoi cambiare colore.
non capisco cosa intendi: quando dici "fare un return Color e poi un background: getRandomColor();"
codice:
<!DOCTYPE>
<html>
<head>
<script>
function f_cambiacolore(){
var n=parseInt(Math.random() * 7), j,c;
// vettore colori
c=[
[255, 239, 0, 0.2, "#FFEF00"],
[255, 128, 0, 0.2, "#FF8000"],
[223, 0, 0, 0.2, "#E90000"],
[215, 255, 253, 0.2, "#D7FFFD"],
[0, 212, 228, 0.2, "#00D4E4"],
[0, 183, 48, 0.2, "#00B730"],
[1, 1, 178, 0.2, "#0101B2"]
];
j=document.getElementById("quote");
// cambio colore al background
j.style.backgroundColor="rgba("+c[n][0]+","+c[n][1]+","+c[n][2]+","+c[n][3]+")";
// cambio colore al testo
j.style.color=c[n][4];
j.innerHTML=(n+1);
}
</script>
</head>
<body onload="f_cambiacolore()">
<div id='quote' style='background-color:#CCC;position:absolute;left:20px;top:80px;width:400px;height:300px;font:24px Arial;padding:20px;'></div>
</body>
</html>