What is the composition of candle?

For Paraffin candles: mostly paraffin - which is a mixture of hydrocarbons ranging from about 20 to 40 carbons per molecule.
For tallow candles: mostly fatty acids including Oleic acid (C18-1, ω-9), Palmitic acid (C16:0), and Stearic acid (C18:0).