The colour of PANI is pH dependent, as its protonated and non-protonated forms of the have different spectral characteristics. The colour changes from green (acidic solution) to blue (basic solution).
For doped polyaniline, or as you said in acidic condition, polyaniline exists in emerladine salt form, which is green in color. For undoped polyaniline, there exists three states, i.e. emerladine base, leucoemeraldine , pernigraniline, which are blue, yellow/white and purple in color respectively. Your question is not justified as in which state in three pH conditions.
Based on PANI Synthesis: Polymerized from the aniline monomer, polyaniline can be found in one of three idealized oxidation states: leucoemeraldine (white/clear & colorless) emeraldine (green for the emeraldine salt, blue for the emeraldine base) and (per) nigraniline (blue/violet). Emeraldine base is regarded as the most useful form of polyaniline due to its high stability at room temperature and the fact that, upon doping with acid, the resulting emeraldine salt form of polyaniline is electrically conducting.
Hi! I'm trying perform a polyaniline and acrylamide copolymer but the resultant polymeric mass is brown instead green. Why? Can you help me, please? Thank you!