A rainbow is an arch of colour that is visible in the sky. It is basically formed through the refraction, dispersion of white light and the total internal reflection. Firstly the sun ray fall on the water droplet and light enter inside the water droplet and sunlight split into seven colours. Violet colours most deviated and red colour least deviated.