From food colorants to new battery materials