Print a color vaulue as hex unless it has an alpha channel