A chemist accidently discovered 'Mauveine' the first synthetic dye whilst searching for what?

A chemist accidently discovered 'Mauveine' the first synthetic dye whilst searching for what?