Here are some tangential remarks. It is a fact that S is the third most abundant atomic constituent of crude oils, following C and H.
It has been postulated that since S is not a major constituent of biogenic molecules, where it is by far well preceded by N and O, it must have been incorporated into organic structures en route from biological sources to petroleum or while the crude stood in its reservoirs.
Some comments on the sulfur compounds present in crude oil which are frequently responsible -among others- for its odor and color.
Hydrogen sulfide is present in some sour crudes, but is mostly formed by thermal and catalytic decomposition of sulfur compounds during distillation, cracking, reforming, etc.
Mercaptans aka thiols, are present in most crudes, and may also be formed during processes for the decomposition of organic sulfur compounds.
Neutral sulfur compounds which undergo changes in the course of processing that alters their type, distribution, molecular weight, etc. Those known to occur are CS2, monosulfides, disulfides, thiophens.
Elemental sulfur and COS are very rarely present. Air absorption during intermediate storage may oxidize hydrogen sulfide to elemental sulfur. Carbonyl sulfide is probably formed during thermal and catalytic cracking.
Petroleum porphirins which are complex organometallic compounds containing porphin skeletons related to chlorophyll or h[æ]min, with polar C- S- and N- compounds.
It is apparent that the color of crudes stems mainly from the "NSO" compounds which tend to concentrate in the lube oil and residual (asphaltic bitumen) fractions.