A rainbow colored cloud is what is known as a pileus iridescent cloud. It is formed when smooth clouds form on top of cumulus clouds when cold air rises higher in the atmosphere.

It is made up of uniformly sized water droplets that diffract sunlight. It is just another miracle from God.