Corrects hex color code