Nail polish keeps air from getting to your nail, so any color of polish can leave nails yellow. Colors with more pigment, such as reds, purples, black, or blues, can further stain the nails, making them even darker yellow.
Gently buffing your nails will remove the yellow stains in seconds. But never use a harsh nail file! Files are too rough and can remove too many layers from the surface.