Eggplant is dark purple because of the vacuolar pigment anthocyanin. At different pH levels, anthocyanins may appear one of many colors. Some may be reddish looking, others may have a purple or blue look. Common foods with this pigment include blueberries, raspberries, and black rice. The specific anthocyanin that is found in eggplants is called "nasunin."