Coughing up yellow green phlem with occasional small black mucous parts what could cause this?

Viral or bacterial. Is either bacterial or viral sinusitis or bronchitis. Depending upon how long you've had symptoms for you may want to speak with your doctor regarding an antibiotic. Also, stop smoking!