sostituisci Rainbow.style.color con
document.getElementById("Rainbow").style.color