Synthetic dyes became available in the 1900s. Early artificial colors were called "coal-tar" colors because the base materials were derived from bituminous coal. Today, most synthetic coloring comes from petroleum or crude oil.
https://activistpost.com/2024/12/why-are-we-feeding-our-children-food-made-from-petroleum.html