A molecular formula is a way of expressing information about the proportions of atoms that constitute a particular chemical compound. Using a single line of chemical element symbols. This is the best way to represent any chemical compound. Periodic table in one way has a position in some cell for all the chemical elements based on their atomic numbers. Hexadecimal color codes are used in identifying different colors using color codes. In this paper we propose a method of representing any chemical formula as a path graph using the position of the chemical elements in the periodic table and the colors assigned to them. © 2014, Sphinx Knowledge House. All rights reserved.