Why Does Red Cabbage Change Colour With Vinegar or Lemon Juice?

Red cabbage changes colour because it contains anthocyanins — the same pigments that make blueberries blue, lychees turn brown, and plums purple. Anthocyanins are pH-sensitive, meaning they shift colour depending on how acidic or alkaline their environment is. Add acid (vinegar, lemon juice) and the cabbage turns bright red or pink. Add base (baking soda) and it turns blue or green. The colour change is the pigment responding to hydrogen ions in the solution around it.

This is the same chemistry that makes hydrangea flowers change from pink in acidic soil to blue in alkaline soil. It is also the reason a glass of red wine can look different depending on the water hardness in your area, and why some fruit juices change colour when you add lemon. Red cabbage is just a particularly dramatic and accessible example, which is why it is a classic primary school science experiment.

How the Colour Change Works

Anthocyanins are water-soluble pigments that exist in several structural forms, and the form they take depends on the pH. In acidic conditions (low pH, lots of hydrogen ions), the anthocyanin molecule adopts a structure that appears red or pink. In neutral conditions (pH around 7), it appears purple — which is the natural colour of red cabbage. In alkaline conditions (high pH, few hydrogen ions), the molecule shifts again and appears blue, then green, then yellow as the pH rises further.

Red cabbage itself is naturally slightly acidic, which is why it is reddish-purple to begin with. When you add vinegar or lemon juice, you increase the acidity and the cabbage turns a vivid bright red. When you add baking soda (sodium bicarbonate, mildly alkaline), the cabbage turns blue-green. Add something strongly alkaline like soap or bleach, and it goes yellow-green. The full range is red (acidic) → purple (neutral) → blue (mildly alkaline) → green (more alkaline) → yellow (strongly alkaline).

How to See It at Home

Take a few leaves of red cabbage, chop them roughly, and boil them in a small amount of water for about 10 minutes. Strain out the leaves. You now have a deep purple liquid that is one of the best natural pH indicators you can make at home. Pour some into a glass and add a spoonful of vinegar — it turns bright red. Pour another glass and add a pinch of baking soda — it turns blue-green. Lemon juice, lime juice, and other acidic foods give the same red shift as vinegar.

This is a genuinely useful property. If you want to know whether something is acidic or alkaline and do not have litmus paper, red cabbage indicator works. You can even test the pH of your garden soil by soaking a cabbage-leaf extract in a small sample of soil and comparing the colour to a chart. It is not precise, but it is surprisingly informative.

What This Means for Cooking

The pH sensitivity of red cabbage is a real consideration when you cook with it. If you add red cabbage to a dish with vinegar, lemon juice, wine, or tomatoes, it will turn a vivid red. If you cook it with something alkaline — and the classic culprit is hard water, which is mildly alkaline, or baking soda — it can turn an unappealing blue-green. The same cabbage in different cooking liquids can come out completely different colours.

This is why many traditional red cabbage recipes include an acidic ingredient. German red cabbage (Rotkohl) is cooked with vinegar or apple, which keeps it red. Polish czerwona kapusta uses lemon juice. The acid does double duty: it keeps the colour bright, and it helps keep the cabbage crisp by strengthening the pectin in the cell walls, similar to how acid keeps cut apples from browning.

If your red cabbage goes blue during cooking, you can rescue the colour by stirring in a spoonful of vinegar or lemon juice at the end. It will shift back to red within seconds. The chemistry is reversible — the anthocyanin molecule simply shifts to its acidic form when the hydrogen ions return.

Why Red Cabbage Is Good for You

The anthocyanins that cause the colour change are also the reason red cabbage is so good for you. Anthocyanins are powerful antioxidants linked to reduced inflammation, improved cardiovascular health, and better cognitive function. Red cabbage has significantly more anthocyanins than green cabbage — roughly 10 times more — which is why it is considered the healthier choice. See our anti-inflammatory foods guide for more on anthocyanin-rich produce.

Red cabbage is also high in vitamin C, vitamin K, and fibre. One cup of raw red cabbage provides about 85% of your daily vitamin C requirement, which makes it one of the better vegetable sources of this nutrient — see our vitamin C foods guide for how it compares to oranges and capsicum. The combination of anthocyanins, vitamin C, and fibre makes red cabbage one of the most nutrient-dense vegetables available, and one of the cheapest.

How to Buy and Store Red Cabbage

Look for a cabbage that feels heavy for its size, with tightly packed leaves and no browning or soft spots. The colour should be deep, vivid reddish-purple. Pale or brownish cabbages have been sitting around and will have lost both colour and nutrients. The cut end (if you are buying a half cabbage) should look fresh, not dried out.

Store red cabbage whole in the crisper for up to two weeks. Once cut, wrap it tightly in plastic and use within a week — the anthocyanins degrade with exposure to light and air, and the cabbage loses some of its nutritional value. If you are buying it to use as a pH indicator, use it within a few days for the strongest colour. You can scan the cabbage with PickFresh to check freshness before you buy.

Red Cabbage vs Green Cabbage

The two are nutritionally different despite being the same species. Red cabbage has about 10 times more anthocyanins, more vitamin C, and slightly more fibre. Green cabbage has a milder flavour and is the more common choice for classic coleslaw. For maximum nutritional benefit, choose red. For a milder, sweeter dish, choose green. They are interchangeable in most recipes, though the colour of the final dish will obviously be different.

Both are available year-round in Australia. Red cabbage tends to be slightly more expensive but is still one of the cheapest vegetables per serve. See our budget grocery guide for how to get the most nutrition for your dollar.