In recent years the harvesting of renewable energies became of great importance. This led to a rapid development of dye-sensitized solar cells which can be produced from low-purity materials. The best electrical properties are provided by cells prepared using synthetical, ruthenium based dyes. Unfortunately, most of them are toxic and expensive. The anthocyanins extracted for example from hibiscus flowers yield a more cost-effective and eco-friendly alternative to toxic dyes, however, with a loss of solar cell efficiency. In this article the possibility of improvement of the conversion efficiency by modification of the pH value of the dye is investigated. By decrease of the pH value, an increase of efficiency by a factor of two was achieved.