I spilled black nail polish on beige carpet. What I did was I took nail polish remover and totally soaked the area. Then, I rubbed it really hard with my fingers and a guitar pick (it just got deeper into the carpet, it's not crucial) and rubbed it. It mostly came out, but still small traces are still left, but all I can say is that I'm glad it looks better than it did before.