Hi,
Can we say " Sugar was the color of earth" if that is a generic (general) statement? No. If you want to make general statements about sugar, use present tense, eg Sugar is sweet.
The person possibly put the article 'the' because of the reason of specificity which might be come...