Lens color is a personal choice and doesn't affect how well sunglass lenses protect your eyes from UV light. Gray and brown are popular because they distort color perception the least.
Athletes often prefer other tints for their contrast-enhancing properties. For example, yellow lenses are popular with skiers and target shooters because they work well in low light, reduce haze and increase contrast for a sharper image.