Why do we see a rainbow of colors reflected off a CD or DVD? So, we all know if you shine some light on CD (compact disc) or DVD, you can see all the colors from red to violet. 
What is bothering me is what is the reason of why do we see the colors on compact disc?
I know that CD has tiny pits/bumps (order of size is micrometers).
So when I shine a light on CD, I see different colors and they are changing I move the disc, which is because I change the angle $\theta$ between my eyes and disc; which is followed by diffraction condition:
$dsin\theta = m\lambda$ 
So my, my main concern is are colors over there because light travels different distances when in comes to the surface of CD because of bumps/pits?
Can I interpret diffraction colors on CD same as color on thin films?
Because although one part of CD is quite reflective surface the other is almost fully transparent.
Is this like combination of reflection and diffraction?
I mean reflection is there because  of reflective surface, and even because of some thickness of aluminum I see colors (which is like thin films)?
And now comes the bumps/pits on cd? Because of them I also see colors or?
 A: We often think that light goes in straight lines, and reflection angle equals incidence angle, but that is only a statistical property of bulk light.  An individual photon can go in any direction after a disturbance (at least we can't predict it), but paths whose lengths are much longer than the straight line path will cancel because the phase at the detector (eye) is affected by the path length.  When the apparent distances between obstacles match the wavelength (color) of light, that color is reinforced (not cancelled, because the cancelling photons went through the gaps between the obstacles). For any colored spot that you see, there are several paths whose lengths differ only by a multiple of the wavelength.  Other colors don't appear there because their wavelengths are not exact divisors of the multiple path lengths, so they can cancel out.  Reflection and diffraction merely refer to the two sides of the obstacles: reflected light bounces off the obstacles and diffracted light goes through the gaps. 
On a CD, the important distance is that between the 'data tracks', not the thickness of the disk or the spacing between 'bits' (a blank CD-R already diffracts).  A CD is pressed with tracks (either with bit pits, or just a groove for photosensitive dye), and the aluminized layer is placed over that.  It is the gap between tracks that reflects the most light (or passes it if you remove the backing).  Depending on viewing angle, the apparent distance between tracks
will be a multiple of certain wavelengths, which will be the color you see there.
A: The pits are in parallel circular tracks with a distance of 1.6 micrometers. These act as a diffraction grating. Normally this is a reflection grating, but one can make a transmission grating by removing the metal layer (easiest in recordable disks).
Here is an image that I made in transmission with a cover disk without a recording layer. The mercury street light can be seen in the middle.

