The colours run, leaving both your black top and your white shirt looking different shades of grey.
But now scientists at the University of Leeds have invented a revolutionary way of permanently colouring the molecules of fabric fibres, meaning that the colours never run and clothes never fade.
The team have created a company, DyeCat, to develop their technology, which offers a more environmentally-friendly alternative to more conventional methods currently used for dyeing clothes.
Dr Patrick McGowan of the University's School of Chemistry and co-founder of DyeCat said: "When clothes are exposed to sunlight and are washed and dried repeatedly, the molecules which colour the cloth begin to detach from the surface of the material and the colours fade.
"If this happens in your washing machine, the molecules may reattach to the other items that they're being washed with - hence your white shirts turns grey and your black top slowly fades and loses colour.
"The DyeCat technology turns the way that textiles are coloured on its head so this doesn't happen. Currently, when clothing is made, the fabrics are usually dyed using chemicals in water baths and it is during this process coloured molecules attach themselves to the fabric and this gives the colour we see. But this uses lots of energy and water and is costly and time-consuming.
"In the DyeCat process we do things differently, we colour the fibre itself- the bit that ends up making up the fabric - as the fibre is made, meaning that the colour is 'locked in' and will never wash out or fade like the traditionally dyed materials."
Currently, many of the clothes produced around the world include polyester, a type of polymer made from oil. But with oil and gas supplies dwindling and an increasing recognition of the environmental damage that can be caused by the extraction and use of oil, the need for alternative materials made from renewable sources has never been greater.
DyeCat's technology uses another type of polymer called PLA, or polylactic acid, which is an alternative to oil-based polymers. PLA is derived from 100% renewable sources, such as maize, and is biodegradable but until now, it has not been used extensively in the commercial production of fabrics, in part because of the problems in dyeing it.
DyeCat, which was founded by Dr McGowan, Professor Chris Rayner both from the University's School of Chemistry and Dr Richard Blackburn of the School of Design, have found a way round this problem.
Dr McGowan explained: "We made a chemical catalyst to which different coloured dyes are added. When the catalyst is added to the lactic acid derived from corn starch or cane sugar, it turns the acid into the PLA polymer and the colour becomes part of the polymer at the same time.
"Because the molecular structure of the PLA is altered at this early stage - as opposed to the polymer being dyed later in a chemical wash - the colour is permanent."