The following is an article from the book Uncle John's Bathroom Reader Salutes the Armed Forces.
The British Army's fancy scarlet tunic looked sharp, but was agonizingly uncomfortable in the heat. The soldier's warm-weather option was a dazzling white uniform -spiffy but impractical for daily use. How to solve the problem?
JUST WILD ABOUT HARRY
Legend has it that a British colonial officer dabbled with the idea of creating his own lightweight, light-colored clothing to wear while he was stationed in India. What began as an off-duty ensemble evolved into military attire when it proved to be more comfortable and sensible than the existing uniform.
That officer was Lieutenant Harry Lumsden, the son of a British colonal. After schooling in England and Scotland, by age 17 Lumsden was serving in the infantry in India. In 1846, when he was just 25, he was tapped for the duty that would lead to his greatest claim to fame.
Serving in Peshawar in what was then northwestern India (now Pakistan on the Afghanistan border), Lumsden was given the task of forming the Corps of Guides, a new regiment of infantry and cavalry soldiers. The 300 handpicked men were to serve as guides and scouts as well as fighting forces. Irregular cavalry regiments such as the Corps of Guides were allowed to wear what they wanted, within reason. Lumsden had an idea about what that should be. He'd been experimenting with loose-fitting cotton garments patterned after the local men's attire and dyed a muddy tan color, which hid the dirt and made the wearer less conspicuous in the dusty landscape of the battlefield. Locals dubbed the duds khaki, from the Hindi and Urdu word khak, meaning dust. Fellow British soldiers started calling the Corps of Guides the "mudlarks" because of the muddy color of their uniforms.
DUSTING OFF SOME FACTS ABOUT KHAKIS
Lumsden achieved that characteristic mud color by dunking the fabric in mud. In another version of the tale, he took his clothes to the local bazaar and had them colored with a dye made from the local mazari palm. When khaki caught on, Lumsden tried unsuccessfully to obtain drab uniform fabric from England. So he had the dying done locally, either by soldiers themselves or by civilians. While other regiments scoffed at the mudlarks initially, they soon adopted khaki as well, especially during the Indian Rebellion of 1857, which took place primarily during the summer months. Even then, the troops were left to color their own garments using mazari, coffee, tea, or even tobacco juice.