White is scattered sunlight
A cloud is made of millions of tiny water droplets, each one scattering sunlight in all directions. The droplets scatter all colours roughly equally, so the light reaching your eyes is the Sun's full mixture — which we see as white. A thin, young cloud scatters plenty of light downward and glows bright against the blue.
This is also why a cloud's sunlit top is whiter than its shaded base: the top receives the full sunlight first.
Grey is light running out
As a cloud grows taller and denser, droplets in the upper layers scatter and absorb so much light that little is left for the lower layers to pass on. The base darkens — first pearl-grey, then the deep grey that promises rain. The grey is not dirt or smoke; it is shadow, the cloud shading itself.
So cloud colour is a rough gauge you can read from the ground: white and fluffy means thin enough for light to flood through; dark and heavy means the cloud has grown thick — and thickness is what a rain cloud needs.

