Particle color distance to empty in Eeevee?
The distance node is part of the (kinda-deprecated) texture node editor, which is different from the shader node editor. To get the distance between two locations, use a vector Math node set to Distance.



Result :



Note : The shader should go on the particle object, not on the instancer.