Mass loss in AGB stars from infrared colors