A compound that is formed primarily of the elements carbon and hydrogen.