Soak the loosened yarn in the salt, hot water, and vinegar solution to set the dye. This makes it colorfast and lessens the chance it will run in the wash. Step 3: Immerse your yarn in the water, salt, and vinegar mixture. Don’t agitate it, but make sure it’s good and soaked.