The electronic structure of the ternary RPtIn (R = La, Ce) compounds, which crystallize in the hexagonal ZrNiAl-type structure, was studied by X-ray photoelectron spectroscopy measurements and calculation using the ab initio methods (linear mun-tin orbital in the atomic sphere approximation, full potential linear mun-tin orbital, full potential linear orbital). The results showed that the valence band in these compounds is formed by the Pt 5d and In 5s and 5p states. The band calculations with spinorbit coupling have shown that the Ce 4f peaks consist of two peaks above the Fermi level that correspond to the Ce 4f 7/2 and 4f 5/2 doublet and wide peaks corresponding to the La 4f states. The analysis of Ce 3d spectra on the basis of the GunnarssonSchönhammer model gives hybridization of 4f orbitals with the conduction electron band equal to 170 meV.