The studies I have seen (long ago) suggested that yellow on black was better than black on yellow, white on black better than black on white, and red on black better than black on red.
However, there are so many confounding factors that one should not take a simplistic view of the matter. It depends on the resolution, illumination, hue, saturation and sources of visual noise.
It emphatically is not a matter that you can settle without a good helping of common sense in any particular application.