Summarize the following:
Hold the garment under a stream of warm water to wash away the saturated dye. Gradually decrease the temperature of the water so that it cools the garment in stages. Continue rinsing with cold water until it runs clear. Going from warm to cool water will help the color set after the loose dye has been rinsed out. Wash freshly-dyed apparel on a low heat setting with a mild detergent. Throw an old towel in to soak up any dye that happens to run. For the first few washings, separate different colored items to prevent bleeding and color-mixing.  Some materials may fade a little following a few washings.  Consider using color-preserving detergents and fabric softeners to maintain the appearance of your dyed clothing. The heat from the dryer will reset the fabric, locking in the new color. Like you did while washing, make sure you keep an old towel with the item in case of minor bleeding. After an initial washing and drying, you can begin laundering dyed clothing as usual. Once the item comes out of the dryer, it will be ready to wear! Whisk less sturdy materials like wool, silk, and lace through a sinkful of clean, warm water. Mix in a small amount of detergent to clean and restore the fabric. Press out the excess water gently, then hang each garment separately and allow them to air dry.  It may take as long as 24 hours for hand-washed clothing to dry completely. Position a bucket or old towel beneath your dyed delicates as they dry to catch stray drips.

Summary:
Rinse the item immediately. Run the item through the washing machine. Dry the item thoroughly before wearing. Wash and dry delicates by hand.