Translate colors to hexa