Bacterial infections can cause your mucus to be green or yellow in color.
Colds usually produce clear looking mucus.
If your mucus is yellow or green then you likely have a sinus infection but if the mucus is clear then you probably just have the common cold which should go away on it's own.