How many colours were there in a medieval rainbow?

This is the sign of my covenant, that I make between me and you and all living creatures for all generations, that is that I will set my rainbow in the clouds and it will be a sign of my covenant between me and the earth: when I cover the heavens with the clouds, then…