Rainbow may be formed...it is not according to the colur of sun red,or anything..it always forms opposite to the sun and after a rain shower...
Rainbow is due to the total internal reflection,reflection and refraction undergoing when sunlight passes through the moisture or tiny water droplets