A substance X is compound of an element of group IA. The substance X gives a violet colour in flame test