Introduction
A solution is a mixture of a soluble chemical dissolved in water. Think about the difference between salt water and tap water. The salt in the salt water has dissolved and the solution looks clear, but the salt is still there and will taste salty if you taste it. Because solutions are made with water, which is made of hydrogen and water, the hydrogen in the water can make a solution into an acid or a base.
You might think about an acid as something that an evil villain uses to trap a super hero, but actually some very common household solutions are acids. Acids are solutions that will donate hydrogen ions in a solution, and usually taste sour. Some common acids are citrus fruit juices and household vinegar. Bases are solutions that accept hydrogen ions in solution, and usually feel slippery. Bases have many practical uses. "Antacids" like TUMS or Rolaids are used to reduce the acidity in your stomach. Other bases make useful household cleaning products.
How do you tell if something is an acid or a base? You use a chemical called an indicator, which changes in color depending on whether a solution is acidic or basic. (Specifically, an indicator works by responding to the levels of hydrogen ions in a solution.) There are many different types of indicators, some are liquids and some are concentrated on little strips of "litmus" paper. Indicators can be extracted from many different sources, including the pigment of many plants.
Red cabbage contains an indicator pigment molecule called flavin, which is one type of molecule called an anthocyanin. This water-soluble pigment is also found in apple skin, red onion skin, plums, poppies, blueberries, cornflowers, and grapes. Very acidic solutions will turn anthocyanin a red color. Neutral solutions result in a purplish color. Basic solutions make a greenish-yellow or yellow color. For some examples, see Figure 1, below.