The color of rapeseed (Brassica napus L.) petal is usually yellow but can be milky-white to orange or pink. Thus, the petal color is a popular target in rapeseed breeding programs. In his study, metabolites and RNA were extracted from the yellow (Y), yellow/purple (YP), light purple (LP), and purple (P) rapeseed petals. Ultra-performance liquid chromatography-tandem mass spectrometry (UPLC-MS/MS), RNA-Seq, and quantitative real-time (qRT-PCR) analyses were performed to analyze the expression correlation of differential metabolites and differential genes. A total of 223 metabolites were identified in the petals of the three purple and yellow rapeseed varieties by UPLC-MS/MS. A total of 20511 differentially expressed genes (DEGs) between P, LP, YP, versus Y plant petals were detected. This study focused on the co-regulation of 4898 differential genes in the three comparison groups. Kyoto Encyclopedia of Genes and Genomes (KEGG) functional annotation and quantitative RT-PCR analysis showed that the expression of BnaA10g23330D (BnF3H) affects the synthesis of downstream peonidin and delphinidin and is a key gene regulating the purple color of petals in B. napus. L. The gene may play a key role in regulating rapeseed flower color; however, further studies are needed to verify this. These results deepen our understanding of the molecular mechanisms underlying petal color and provide the theoretical and practical basis for flower breeding targeting petal color.