Red and blue light-emitting diodes (LEDs) affect the quality of sweet potato leaves and their nutritional profile. Vines cultivated under blue LEDs had higher soluble protein contents, total phenolic compounds, flavonoids, and total antioxidant activity. Conversely, chlorophyll, soluble sugar, protein, and vitamin C contents were higher in leaves grown under red LEDs. Red and blue light increased the accumulation of 77 and 18 metabolites, respectively. Alpha-linoleic and linolenic acid metabolism were the most significantly enriched pathways based on Kyoto Encyclopedia of Genes and Genomes (KEGG) pathway analyses. A total of 615 genes were differentially expressed between sweet potato leaves exposed to red and blue LEDs. Among these, 510 differentially expressed genes were upregulated in leaves grown under blue light compared with those grown under red light, while the remaining 105 genes were expressed at higher levels in the latter than in the former. Among the KEGG enrichment pathways, blue light significantly induced anthocyanin and carotenoid biosynthesis structural genes. This study provides a scientific reference basis for using light to alter metabolites to improve the quality of edible sweet potato leaves.