In Material select all colors in color range ?

Currently I use a constant 3Vector to select a specific color and I subtract that from a texture and I then use that output as a mask.

What I am trying achieve is a basic version of how the Photoshop select a color range in an image works.
Where by I can select several colors and can adjust the fuzziness “strength” of the selection.