I was bored when I read your message, so I thought that I would research it. I found the below info. In this case, a female fish becomes a male. Secondary males are sometimes called supermales or terminal males. Females and primary males look alike and are red, gray, brown and black.
Secondary males are bright green, blue, red and yellow.
There a re also some species that maintain the same colors throughout their lifetime. Some species move to specific areas to spawn, typically into deeper areas of the reef. Supermales pair up with one female to spawn, while primary males mate with small groups containing one female and several males. After spawning, they return to the shallow water at night. Fertilized eggs hatch after 25 hours.