I've done it myself many times...with a deposit-only type of hair color (Robert Craig), not the fume-y kind with peroxide.

It works, but it does fade very fast. It's also dangerous, so you have to be very, very careful not to get it in your eyes.