Materials can inherit their color from the object in which they are attached, this is known as color by object. The ACI 7 color is affected by the background color of the viewport being rendered. For example, an object assigned ACI 7 will appear as white against a black or dark background, or will appear black against a white or light background.
If you don't want an object's color to switch between white or black based on the background color, do one of the following: