The production of violet colouration, when dilute NaOH solution is added to a solution of…