Owing to the high anthocyanin content, broccoli varieties with purple curds have become more popular in food inventories, while the genetic mechanisms of anthocyanin biosynthesis pathways remain largely unknown. We bred a pair of near-isogenic lines (NILs), GB767 and PB767, whose curds exhibited green and purple colors, respectively, due to the purple sepals of florets. RNA sequencing and widely targeted metabolic analyses were conducted. Compared with GB767, eighteen anthocyanin biosynthesis-related genes exhibited significantly higher expressions in PB767, and in turn, the expression level of BolMYBL2.1 was attenuated. A comparison of the metabolites in the flavonoid biosynthetic pathways revealed 142 differentially accumulated metabolites, among which higher content of anthocyanins was responsible for the purple color of PB767. Interestingly, the total cyanidin contents were similar between the curds of NILs, whereas total delphinidin contents were increased by more than 170 times in purple curds, presumably due to a non-canonical F3′H/CYP75B gene, BolC02g015480.2J, with elevated expression in PB767. Furthermore, correlation analysis further confirmed that the identified nineteen DEGs were significantly correlated with seven differentially accumulated anthocyanins in PB767. Together, these results identified the metabolic factors and genes that contribute to the purplish curds, which could lay foundations for the breeding programs of purple broccoli.