Avoid hot water. It depends on how long they have been there.
Soaking in baking soda may work.
Vinegar and water may work.
Hydrogen peroxide and water may work.
Wash in cool water afterwards with regular soap and rinse.
For colours and delicate materials you may want to do a test of a small safe area of the material.