The liquid that changes color when electricity is applied is often referred to as an electrolyte solution or a conductive liquid, and one specific example is a solution containing phenolphthalein, which can change color in response to changes in pH. However, for a more relevant answer regarding color change due to electricity, you can use a liquid crystal display (LCD) or electrochromic materials.
Electrochromic materials can change color when