Hydrocarbons can be described as organic compounds that consists only hydrogen and carbon atoms. These compounds are of different types and thereby have distinct natures. Hydrocarbons are colorless gases and are known for discharging faint odours. These have been categorized under four major classes named as alkynes, alkanes, alkenes, and aromatic hydrocarbons.