A low-scatter survey-based mass proxy for clusters of galaxies