ALKALIO
Play

ALKALIO › Chemistry explained

Real or Reel? The drink that changes colour: Add lemon and the purple drink turns pink. Bar magic or chemistry?

Red cabbage indicator: the pH test you can cook

Short answer: red cabbage contains purple pigments called anthocyanins. Their molecules change shape when they gain or lose hydrogen ions, and each shape absorbs a different part of the light. So the same juice looks red in an acid, purple when it is close to neutral, and blue, then green, as a solution gets more alkaline. That makes it a pH indicator you can make in a kitchen.

Red cabbage pH indicator in ALKALIO. Level 1.3, played in the game.
Red cabbage is a pH test. Boil it. Filter out the leaves. Vinegar, an acid: pink. Water, neutral: still purple. Washing soda, a base: green.

Why does red cabbage change colour?

The colour comes from anthocyanins, the same family of pigments that colours blueberries and red onions. In red cabbage they are mostly built on one core molecule, cyanidin, with sugars attached.

An anthocyanin is not one fixed structure. In strong acid it carries an extra hydrogen ion and has a positive charge, and that form looks red. As the pH rises it loses hydrogen ions step by step. Each loss rearranges the way electrons are shared along the molecule, which changes which wavelengths of light it absorbs. What reaches your eye shifts from red to purple to blue. Above about pH 10 a yellow form appears as well, and blue plus yellow looks green.

That yellow form matters: it slowly turns into a compound that cannot change back. So in strong alkali the colour change is not fully reversible, and a fresh extract works best.

Red cabbage colour chart

The exact shade depends on the cabbage, how strong your extract is and the light you look in, so treat this as a guide rather than a measurement.

pHColour you usually see
2Red
4Purple
6Violet
8Blue
10Blue-green
12Greenish yellow

That is the chart the University of Illinois uses with students; the Royal Society of Chemistry gives the same pattern in broader bands (red in strong acid, purple to dark blue around neutral, green to yellow in strong alkali). For the classic samples: vinegar is about pH 3, pure water pH 7, and washing soda (sodium carbonate) solution about pH 11.5.

How to make red cabbage indicator

  1. Chop or tear a few red cabbage leaves into small pieces and put them in a heat-proof beaker or bowl.
  2. Pour on boiling water, just enough to cover them. Hot water breaks open the plant cells and the pigment dissolves out much faster than in cold water.
  3. Stir now and then and leave it until the water is a deep purple.
  4. Filter it (a coffee filter or filter paper in a funnel) and let it cool. The purple liquid is your indicator.
  5. Put a little of each test solution into separate clean test tubes or glasses and add the same small amount of indicator to each. Compare the colours against a white background.

What you should see

With the three classic samples: vinegar turns it red, water leaves it purple, and washing soda solution turns it green. If you test something you do not know, compare it with those three and you can say whether it is acidic, about neutral or alkaline. You cannot read an exact pH from it. Universal indicator or a pH meter does that job.

The mistakes people usually make

Safety

The cabbage is harmless, but the method is not completely. Boiling water scalds, so pour it carefully and let the extract cool before you handle it. Washing soda (sodium carbonate) can irritate eyes, and stronger alkalis such as sodium hydroxide are corrosive, so wear eye protection when you test alkalis. Test only what your method lists: never mix household cleaners to see what happens.

Questions people ask

Why is red cabbage juice a good indicator?

Because its pigment changes colour several times across the pH range, not just once. One extract tells strong acid, weak acid, neutral, weak alkali and strong alkali apart, and it is cheap and safe to make.

Is red cabbage indicator acid or base?

Neither, really. It is a solution of pigments that is close to neutral, which is why it starts out purple. It shows you whether the thing you add it to is acidic or alkaline.

How long does red cabbage indicator last?

Not long. It is a plant extract, and the pigment slowly changes, so use it fresh. If the colour has faded or it smells, make a new batch.

Why does it turn green and not blue?

Around pH 8 you do see blue. Above about pH 10 a yellow form of the pigment appears alongside the blue one, and blue plus yellow looks green to the eye.

Sources

  1. Royal Society of Chemistry, Making a pH indicator using red cabbage
  2. Royal Society of Chemistry, Red cabbage pH indicator experiments
  3. University of Illinois, Carl R. Woese Institute for Genomic Biology: Red cabbage pH indicator (colour chart)
  4. University of Bremen, SALiS: Red cabbage indicator (colour changes and the yellow form)
  5. Acylated anthocyanins from red cabbage and purple sweet potato (research paper, 2021)
  6. LibreTexts Chemistry, The pH scale (vinegar about pH 2.9)
  7. PubChem, sodium carbonate: pH of its solutions

Checked on 3 November 2026. Colour words, ranges and safety rules vary between books and schools; your teacher's method and risk assessment come first.

Acids and bases: proton transfer