The colors in a peacock's feathers serve as visual signals, indicating the peacock's overall health and genetic fitness to potential mates.