Why are the caps different colors?

Individual mushrooms sometimes have different colors, Colors can sometimes vary from being whitish to blackish. The color of the Mushroom does not affect the taste or quality.