In the selection menu choose color range. In the dialogue box pick midtones and check the invert box. Click ok.