Changed to still output 6 hexits if R component is 0.