Why Does Red Cabbage Turn Blue (or Pink)?

Red cabbage turns blue because its purple pigments, called anthocyanins, change colour depending on how acidic or alkaline their surroundings are. In acid they are pinkish-red, in neutral water they are purple, and in alkaline conditions they turn blue and then green. Hard tap water or a pinch of baking soda is enough to tip red cabbage towards blue, and a splash of vinegar turns it right back.
What makes red cabbage purple?
The colour comes from anthocyanins, a family of water-soluble pigments found in the cell vacuoles of many red, purple and blue plants. Blueberries, blackberries, cherries, purple carrots, black beans, eggplant skin and red grapes all owe their colours to anthocyanins.
Red cabbage is especially rich in them, mainly versions of a pigment called cyanidin with sugar groups and acid groups attached. Those attached groups, a feature chemists call acylation, make red cabbage anthocyanins unusually stable, which is why its colours stay strong and shift so clearly. It is one of the best natural pH indicators you can find in a grocery store.
How does pH change the colour?
pH measures how acidic or alkaline something is, on a scale from 0 to 14. Below 7 is acidic, 7 is neutral and above 7 is alkaline. Lemon juice sits around pH 2, vinegar around 2.5, pure water at 7 and baking soda dissolved in water around 8–9.
Anthocyanin molecules change their shape as the pH shifts. Hydrogen ions attach to or leave the molecule, rearranging how its electrons are shared and therefore which colours of light it absorbs. Each shape reflects a different colour back at you.
| pH | Example | Red cabbage colour |
|---|---|---|
| 1–3 | Lemon juice, vinegar | Bright pink to red |
| 4–5 | Diluted vinegar, apple juice | Reddish-purple |
| 6–7 | Distilled water, raw cabbage | Purple to violet |
| 7.5–8.5 | Hard tap water, egg white | Blue to blue-violet |
| 9–11 | Baking soda water, washing soda | Blue-green to green |
| 12+ | Strong cleaners (not food) | Yellow |
Raw red cabbage itself is only slightly acidic, around pH 5.5–6.5, which is why it looks purple rather than true red. The name is a bit of an exaggeration.
Chef Fizz says: Red cabbage is a mood ring for pH. Give it lemon and it blushes. Give it baking soda and it gets the blues.
Why does red cabbage turn blue when I cook it?
Usually because something nudged the pH above neutral. The common causes are:
Hard tap water
In many places, tap water is slightly alkaline, often pH 7.5–8.5, especially where the water is hard and full of dissolved minerals like calcium carbonate. Simmer red cabbage in it with nothing acidic and the pigments drift towards blue. That is why the same recipe can come out purple in one town and blue in the next.
Baking soda
Even a small pinch of baking soda, sometimes added to soften vegetables or speed cooking, pushes cabbage firmly into blue-green. The same thing happens in baking: blueberry muffins or pancakes with too much baking soda can develop greenish streaks around the berries, because their anthocyanins react to the alkaline batter. It is one reason the balance of acid and base matters so much, as explained in baking soda vs baking powder.
Reactive metal pans
Anthocyanins bind to metal ions. Cook red cabbage in aluminium, unlined copper or bare cast iron and the pigments can form complexes with the metal, turning blue, slate grey or even greenish-black. Stainless steel, enamelled cast iron and non-stick pans do not cause this.
Long, gentle cooking
The longer you cook, the more the pigments leach into the cooking liquid and the more time they have to react with anything alkaline. Very long cooking at high pH also starts to break the anthocyanins down for good, fading the colour to a dull grey-blue that will not come back.
Why do braised red cabbage recipes always add vinegar and apples?
Because cooks figured out the chemistry long before anyone could explain it. Classic braised red cabbage, like German Rotkohl or Danish rødkål, is cooked with apples, vinegar, red wine or redcurrant jelly. All of those are acidic, and together they push the pH down to around 3–4, keeping the cabbage a deep, glossy ruby.
The acid also helps the texture. Acidic conditions slow the breakdown of pectin in the cell walls, so the cabbage stays slightly firmer during long braising instead of collapsing into mush. And of course it balances the cabbage's natural sweetness, a trick explored in why a squeeze of lemon makes food taste better.
A good ratio to start with: about 2–3 tablespoons of vinegar per 1 kg (2 lb) of shredded cabbage, plus one grated tart apple.
Can you fix blue cabbage?
Usually, yes. If the cabbage has turned blue from alkaline water, stir in a tablespoon of vinegar or lemon juice and watch it shift back to purple-red within seconds. The colour change is reversible as long as the pigments have not been broken down by prolonged high-pH cooking or locked up by metal ions.
Does red cabbage behave like green vegetables?
Not at all, and the contrast is useful. Green vegetables get their colour from chlorophyll, which is fat-soluble and turns olive in acid, as covered in why green vegetables turn grey. Anthocyanins are water-soluble and get brighter and redder in acid.
So acid is the enemy of green beans but the best friend of red cabbage. Alkaline water keeps green beans green but turns red cabbage blue. If you cook a mix of vegetables together, you have to pick which colour you want to protect.
Because anthocyanins dissolve in water, they also leak out into everything nearby. A purple coleslaw dressing, pink-tinged rice, lilac hard-boiled eggs: all of these are anthocyanins on the move. Red cabbage sauerkraut stays a vivid magenta for the same reason it stays tasty. Lactic acid from fermentation drops the pH, which locks the pigment into its pink form, a nice bonus of how sauerkraut ferments.
Why do some foods turn green instead of blue?
At higher pH, around 9–11, the blue form of the pigment mixes with yellow breakdown forms, and blue plus yellow reads as green. That is why very alkaline red cabbage looks teal or green. A similar-looking but chemically different case: sunflower seeds in cookies made with baking soda sometimes turn green overnight. That one comes from chlorogenic acid in the seeds reacting with the alkaline dough. Both are harmless.
Want to play with the colour scale yourself? The Cooking Scientist app has a short lesson on red cabbage and pH, with a mini game for matching colours to acids.
Try it at home
Make your own edible rainbow of cabbage indicator.
- Chop about 2 cups of red cabbage and cover it with 500 ml (2 cups) of just-boiled water. Let it steep for 15 minutes, then strain. You will have a deep purple liquid.
- Set out five clear glasses. Pour about 60 ml (1/4 cup) of the cabbage water into each.
- Add one of these to each glass and stir: 1 tablespoon lemon juice, 1 tablespoon white vinegar, nothing (your control), 1/4 teaspoon baking soda dissolved in a little water, and 1 teaspoon of egg white.
- Line them up from most acidic to most alkaline.
What you'll see: Lemon and vinegar turn bright pink. The control stays purple. Egg white, which is mildly alkaline at around pH 8–9, turns it blue. Baking soda turns it blue-green or teal.
Why: Each additive changes how many hydrogen ions are floating around, and the anthocyanin molecules reshape themselves to match. Now add a splash of vinegar to the baking soda glass and watch it fizz and swing back towards purple and pink. You have just watched a reversible pH reaction in real time.
Common mistakes
- Braising red cabbage without acid. It drifts towards blue, especially in hard water, and gets mushy. Add vinegar, apples, wine or lemon juice from the start.
- Using baking soda to soften cabbage. It turns it blue-green and soapy-tasting. Use acid and time instead.
- Cooking in aluminium or bare cast iron. Metal ions bind the pigments and turn them grey-blue. Use stainless steel or enamelled pans.
- Mixing it into dishes too early. Anthocyanins bleed into everything. Add red cabbage to slaws, salads and grain bowls right before serving.
- Assuming blue means spoiled. It is only a pH change and is safe to eat. A splash of vinegar usually restores the colour.
- Boiling it in lots of water. The pigments wash out into the pot. Braise in a small amount of liquid so the colour stays in the cabbage.
Questions
Why did my red cabbage turn blue when I cooked it?
Its anthocyanin pigments turn blue in neutral to slightly alkaline conditions. Hard tap water, a pinch of baking soda or long cooking without acid can all push the pH up. A splash of vinegar or lemon juice brings the red back.
Is blue red cabbage safe to eat?
Yes. The colour change is just the pigment reacting to pH. Blue or green-tinted cabbage is perfectly safe, though very alkaline cabbage can taste flat or slightly soapy.
How do you keep red cabbage red when cooking?
Cook it with something acidic, such as vinegar, apples, lemon juice or red wine. Braised red cabbage recipes include them for exactly this reason. Avoid aluminium or cast iron pans, which can turn it blue-grey.
Why does red cabbage turn coleslaw or other food purple?
Anthocyanins dissolve easily in water, so they leak out of cut cabbage into dressings, rice, eggs and anything else they touch. Add red cabbage last and keep it separate until serving if you want clean colours.