The first synthetic dye in history was mauveine (mauve), accidentally created by chemist William Henry Perkin in 1856.