Well... as japanese is written in hiragana (and not in romaji) you'll always know.
If you don't know how to write the word, pay attention to the pronunciation: in 金色 (kiniro), the n sound is held for a considerable time, almost causing a small "pause" in your speech, while in "あなた" (anata) there isn't this kind of thing.