Hydrogen peroxide can be used on some coloured fabrics, but it is not a safe default. It is a mild oxidising agent, and it can lighten or remove dye as well as the stain. Test it on a hidden spot first, use the lowest strength that is likely to work, and never use it on a fabric you cannot check.
Why peroxide can lighten colour
Hydrogen peroxide works by oxidising the coloured compounds in a stain, which is why it can lift marks such as some food, tea and wine stains. The same action can change the dye in the fabric. The result is often a pale patch, a lighter ring or a shade that no longer matches the rest of the item. Dark, bright and printed fabrics are the most likely to show this.
Household strength and what to check on the label
Most people use the common household solution, which is around three percent. Stronger products are sold for hair and industrial use and are not suitable for stains on clothing. Check the label on the bottle, and use the lowest strength you have. If you are unsure of the strength, it is safer to choose a different product.
Test first, then apply to the stain only
Run a colourfastness test on a hidden area, such as the inside of a hem, before you treat the stain. Dab a little peroxide on the spot, wait a few minutes, and press a white cloth onto it. If any colour comes off on the cloth, or the spot looks lighter once it dries, do not use peroxide on that fabric. The full method is in the article on how to test fabric for colorfastness.
If the test is clear, apply the peroxide only to the stain, using a cotton swab or a small cloth. Keep the area small and do not soak the whole garment. Check the spot every few minutes, and rinse with cool water as soon as the stain has lifted or stopped responding. Leaving peroxide on for a long time increases the chance of damage.
Colours and fabrics that need extra care
Be especially careful with dark colours, bright reds, and printed or patterned fabrics. Be cautious with silk, wool and other protein fibres, which can be weakened or discoloured. Treat any fabric with a special finish, such as a glossy or coated surface, as unsuitable unless the care label says otherwise. Coloured fabrics that have already faded, or have been washed many times, may also react more easily.
Do not combine it with other products
Do not mix peroxide with vinegar, and do not use it at the same time as bleach. Combining products can give off harmful gases or produce unpredictable results. If you have used another cleaner first, rinse the area thoroughly with plain water before you start with peroxide.
When to choose a different method
Peroxide is only one option. For many stains on coloured fabric, cool water and a small amount of mild, clear dish soap work well and carry less risk. For oil-based stains, a degreaser may suit better. For a stain you cannot lift and the fabric is valuable or delicate, a professional cleaner is the safest choice. For a broader approach to any stain, see how to remove stains safely.