Turn the machine off. With the lid closed, let the items soak overnight. In the morning turn the machine on and finish the cycles. Rinse in cold water. Then, be sure to wash colors in cold water, using the shortest cycle possible.
Detergents play a major role in how colorfast the fabric remains.
Always wash dark and intense colors with phosphate-free detergent. Turn colored clothing wrong side out before washing and drying to reduce friction. Softening The same dryer sheet will work just fine for two, often three, loads of laundry. Or cut a dryer sheet into four pieces, using one-fourth sheet instead of a full one per load. When adding clothes to the dryer follow with several spritzes of softener concentrate onto a washcloth and toss it in the dryer.