If the dye does not bleed or run it can be washed along with whites the next time. Heavily Soiled These clothes need special treatment. Always wash soiled diapers separately because they have very high levels of bacteria. When one or more of the following factors is out of balance, dull or dingy clothes are often the result. Use the warmest water recommended for fabric - Hot water cleans better than cold.
Cold water is fine for rinsing.
Don't scrimp on detergent or laundry additives - Measure, don't guess. For heavily soiled clothes, more may be needed. Avoid overloading the machine - Also set water level high enough so that clothes have plenty of room to circulate and rinse properly. You want to make sure dirt and detergent go down the drain, not back on the clothes. If stains remain, treat and wash again.