It is a matter of oxygen what is present and how much hydrogen the molecule contains. In air it is abaut 21% oxygen. If the molecule contains not much hydrogen, then the combustion is not 100%. A lot of carbon goes as carbon black into the flame which gives the yellow illumination. Often also traces of sodium support it.
If a combustion takes place in an 100% oxygen atmosphere then there will be not much difference.