The mechanism of color pattern formation in animals is complicated. Oujiang color common carp (Cyprinus carpio var. color) is an excellent fish model for studying the molecular mechanism of pigmentation. Solute carrier family 24 member 5 (SLC24A5) was identified as a key gene in regulating melanophore development and melanin distribution in organisms. In this study, functional experiments were conducted on the SLC24A5 gene in Oujiang color common carp. The full-length of SLC24A5 mRNA was cloned and obtained. In Oujiang color common carp, qRT-PCR and whole-mount in situ hybridization indicated that SLC24A5 was highly expressed in tissues in the presence of melanin and initiated its expression along with the presence of melanin during embryo development. The SLC24A5 knocked-out via CRISPR/cas9 caused an obvious loss of melanophore in larva and adult zebrafish. In addition, the homozygous SLC24A5−/− zebrafish mutant phenotype was rescued by the over expression of the SLC24A5 from Oujiang color common carp. Results suggested that SLC24A5 is essential for regulating melanophore development and that the functional and structures of SLC24A5 are conserved in Cyprinidae fish.