The optoelectronic response and ground state crystal structure of tetragonal (P4/mbm), orthorhombic (Pmnb) and monoclinic (P21/m) phases of CsPbX3 (X = Cl, Br, I) are studied for optoelectronic applications using first principle simulations. Electric field gradient (EFG) and magnetic hyperfine interactions are investigated to explore the charge distributions surrounding the nucleus and local magnetic environment of the atomic nucleus. The orthorhombic phase of these compounds is more stable having lowest ground-state energy compared to tetragonal and monoclinic phases. The understudied halide perovskites have direct band gap nature and spin orbit coupling (SOC) effect splits Pb-p and X-p orbitals at the edges of conduction and valence band (CB and VB) respectively. At the edge of VB, the strongly hybridized X-p and Pb-p orbital and direct band gap nature of CsPbX3 is excellent for the light absorption and photovoltaic (PV) applications. The n-i-p configuration (FTO/ETL/CsPbX3/HTL/Au) of the simulated structure shows that CsPbI3 has improved power conversion efficiency (PCE) of 22.48 % and 22.32 % and quantum efficiency (QE) about ∼80 % in tetragonal and monoclinic phases respectively. The Pb and Cs values of EFG tensor in z-direction (Vzz) are close to each other, which show that the distribution of electronic charge density is similar near these nuclei. Moreover, Cs-s orbital has negligible contribution and Pb-p and I-p orbitals have higher contribution in the hyperfine field (HFF). The negative HFF indicates the opposite HFF contribution.