Carrots contain carotene, specifically beta-carotene, which is a pigment responsible for their orange color. Beta-carotene is also a precursor to vitamin A in the human body. The color is due to this chemical pigment, not soil conditions or sunlight exposure.