It’s true that in Farsi it means earth colored as well
"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."
Source: https://en.wikipedia.org/wiki/Khaki
It’s true that in Farsi it means earth colored as well