An organic photovoltaic device includes an anode and a cathode. The organic photovoltaic device includes an active layer between the anode and the cathode. The active layer includes a p-type material. The p-type material includes a donor-acceptor (DA) polymer. An acceptor unit of the DA polymer includes a functionalized pyranopyran-dione compound or a functionalized naphthyridine-dione compound.