By sequentially layering quantum dots, rainbow quadruple-stack junctions with energy gradient architecture are constructed. Efficient charge energy transfer occurs in the multilayer, thus leading to a significant enhancement in photovoltaic performances of quantum dot solar cells.