Fat and casein scatter light of every color.
Milk is mostly water, but it's full of tiny particles: fat droplets and clusters of casein protein called micelles. These particles are the right size to scatter light. When light hits milk, all its colors bounce around inside and come back out mixed together, and an even mix of all colors looks white to us.
It's the same reason clouds and snow look white. Nothing in milk is actually white pigment.
The balance of particles changes the shade. Skim milk has had most of its fat removed, so fewer large particles are left to scatter light. The remaining smaller casein clusters scatter blue light a bit more, giving skim milk a faintly bluish tint. Whole milk and cream, with more fat, look richer and slightly yellow, partly because of beta-carotene from the cow's diet that dissolves in the fat.