If you cough up yellow or green mucus when you have a cold is this bad?

Viral. Colored mucous can be produced by either a viral or a bacterial infection. Most upper respiratory infections are viral and will get better with time and rest. If there is no improvement within 7 days or if the symptoms are very severe then medical attention should be obtained.