How could I estimate by eye how far away mountains are from you based on their color?

I was on vacation in Rio, Brazil and I saw in the horizon some mountains far away and their colors were contrasting beautifully with each other based on their distance from each other.
There I would like to know how could I estimate by eye how far away mountains are from you based on their color?
1 answer 1