Scanning tunneling microscopy (STM) images of self-assembled monolayers of close-packed alkane chains on highly oriented pyrolitic graphite often display an alternating bright and dark spot pattern. Classical simulations suggest that a tilt of the alkane backbone is unstable and, therefore, unlikely to account for the contrast variation. First principles calculations based on density functional theory show that an electronic effect can explain the observed alternation. Furthermore, the asymmetric spot pattern associated with the minimum energy alignment is modulated depending on the registry of the alkane adsorbate relative to the graphite surface, explaining the characteristic moiré pattern that is often observed in STM images with close packed alkyl assemblies.