An unexpected residue caught his eye . It turned out to be the first aniline dye , mauveine . An unexpected residue caught his eye , which turned out to be the first aniline dye â `` specifically , Perkin 's mauve or mauveine , sometimes called aniline purple .