You are correct. Urine color is an indicator of hydration. But sugar in your urine will cause your urine to be cloudy and more opaque. I've noticed that when I'm in ketosis that my urine is super transparent (just looking at transparency/opaqueness, not at color).