Blue and green pigments do not contain iron pigments, so their presence in the eye would not affect this kind of procedures in any way.

Brown pigments, though, do contain a small amount of iron that could cause a slight increase in the temperature of the eye, without consequences.

If you work in an environment with magnetic fields, for example, healthcare professionals working in radiology units, airport security arcs, and jobs in magnetic fields environments you should tell the surgeon so they can choose the most suitable pigment for your particular case.