Rainbow Spiritual meaning
There are many meanings.
In the Bible, the rainbow was shown to Noah at the end of the flood - if I remember correctly, so it symbolizes hope and new beginnings.
But it also symbolizes diversity, healing, 7 chakras, hippy generation, LGBT movement (though LGBT rainbow has 6 colors and not 7).
To see a rainbow in a dream or real life usually means hope and new opportunities.