The unusual color of the vegetable comes from black pigment, which is produced when exposed to sunlight.