My daughter spilled red nail polish on light blue carpet a couple years ago. We went to the store and bought acetone nail polish remover. I'd test an area before doing this.
We poured the acetone on the spot (it was a big spot) or you could pout it onto an old, clean rag. DAB it, don't rub it in. You will have to use a lot of rags. It took about an hour to get the entire stain out, but after the carpet dried, you couldn't tell anything had been spilled on it.