In hexagonal closed packing, there are 6 octahedral voids completely inside the unit cell.
No. of atoms in hexagonal close packing =6
Since, anions (A) forms hexagonal lattice
No. of A atoms =6
Cation 'C' occupies 23 of the octahedral voids in the unit cell.
∴ No. of C atoms =6×23=4
∴
Emperical formula of the compound =C4A6 or C2A3