You might have heard that yellow or green mucus is a clear sign that you have an infection, but despite that common misperception, the yellow or green hue isn't due to bacteria. When you have a cold, your immune system sends white blood cells called neutrophils rushing to the area.