The article isn't wrong, it's just incomplete.
"Khaki is a loanword from Hindustani (Urdu or Hindi) ख़ाकी/خاکی 'soil-colored', which in turn comes from Persian خاک [xɒːk] khâk 'soil' + ی- (adjectival ending); it came into English via the British Indian Army."
It’s true that in Farsi it means earth colored as well