For stubborn stains, you need to pull out the big guns. Grab a bottle of liquid detergent and apply a few drops to the affected area. Rub over it gently with a soft, damp cloth – and if you can, launder the fabric as soon as you’re done applying the detergent. If not, use a damp cloth to wipe away the excess soap.
The simplest ways generally work the best. A good starting point for getting graphite off of any material or surface is by using a soft eraser. Place the eraser’s edge on the stained material and begin to rub over it gently, but be sure to not to distort the surface by applying excess pressure. When the stain disappears, get rid of the eraser’s dust and you’re set.
Vegetable oil works well when you’re fighting a pencil stain, but be sure never to use it for a fabric.
All you need to do is apply the vegetable oil over the stain, and then wipe off the oil and the stain using a damp cloth, and that should get rid of the stain.