why does indicator litmus change colour
This explanation is true for most organic indicators. Litmus is a complex mixture of organic molecules. The molecule responsible for the color change (the chromophore), is 7-hydroxyphenoxazone (image taken from Wikipedia, public domain):