Normalizes color codes and does some alignement