Some molds secrete pigment known as melanin that can act as a barrier to protect them against other rival molds. Other studies indicate that the color of this particular fungi comes from its food source, genus, conditions under which it grows and it's age