As far as I know mucus is completely white/colorless but the green color comes from stuff that goes inside your nose when you are breathing normally, dust is the main thing, but a lot of other stuff gets in there, such as dead skin that falls off and you breath it, anything that's waste of something and is small will probably end up getting stuck there.