Did the rug have a non slip edge? That is all I can think of for the discoloration or maybe one of the rug colour bled through? If it has stained the white yellow, I don't think there is much you can do. It's either buy another rug, replace the floor or live with it, sorry.