2020 UPDATE: there is no way to do it in Adobe Photoshop. Color Range and masks can not do it.
The image below explains, what Color to Alpha does.
The old image is fully opaque (transparency 100%). RGB values are between #ff0000 and #000000.
The new image has transparency between 0% and 100%. The RGB values are all #ff0000. So Color to Range modifies ...