Peanut (Arachis hypogaea L.) is one of the important oil and economic crops, among which the variegated testa peanut is a unique member. But the molecular mechanisms underlying the pigment synthesis in variegated testa are still unclear. Differentially expressed genes (DEGs) in pigment metabolism pathway in colored area indicated there were 27 DEGs highly related to the synthesis of variegated testa color among 1,050 DEGs,which were 13 up-regulated and 14 down-regulated,consisting of 3 PALs, 1 C4H, 2 CHSs, 1 F3H, 1 F3'H, 2 DFRs, 2 LARs, 2 IAAs, 4 bHLHs and 9 MYBs. GO analysis indicated DEGs were similarly enriched in 3 branches.KEGG analysis suggested flavonoid biosynthesis is the most direct metabolic pathway for the synthesis of testa variegation. The liquid chromatography tandem mass spectrometry (LC-MS/MS) results showed that cyanidin and delphinidin were the main metabolites that caused the color difference between the colored area and the non-colored area. Through the verification of 20 DEGs via qPCR, the results were consistent with that of transcriptome sequencing in 4 comparison groups. The results in this study lay the foundation for revealing the molecular regulation mechanisms of anthocyanin synthesis in variegated testa peanut.