The hydrocarbon compound CH4 is composed of one carbon atom and four hydrogen atoms. The shape of the molecule is determined by the arrangement of its atoms and electron pairs. In CH4, the carbon atom is at the center of the molecule, and the four hydrogen atoms are arranged tetrahedrally around it, pointing towards the corners of an imaginary tetrahedron. Therefore, the shape of the hydrocarbon compound CH4 is tetrahedral.