We have developed a quasi-fractal colloidal crystal to localize efficiently photons in a very broad optical spectral range; it has been applied to prepare dye sensitized photoelectrochemical solar (PES) cells able to harvest very efficiently photons from the ultraviolet (UV) and the visible (VIS) regions of the solar spectrum.