Cephalopods are either male or female. When it is time for mating, the female will often display a certain color. The male will mate with her and will deposit a package of sperm into the female's pallial cavity by use of a specialized tentacle called a hectocotylus.