Skip to main content
Zimt

Home baking recipes and cinnamon favourites

Why is ube cake purple? Explanation and facts

Ube cake is purple because the ube (purple yam) used in the batter contains natural pigments called anthocyanins that appear violet‑blue in most preparations.

What is ube and why it’s purple

Ube, scientifically known as Dioscorea alata, is a starchy tuber native to the Philippines and parts of Southeast Asia. The flesh of the tuber ranges from light lavender to deep violet, a hue that comes from high concentrations of anthocyanin pigments, the same class of compounds that give blueberries, red cabbage, and black rice their color. These pigments are water‑soluble flavonoids that bind to sugars, forming stable complexes that retain their hue even after cooking.

When the tuber is boiled, mashed, or pureed for use in desserts, the anthocyanins dissolve into the surrounding liquid, turning the mixture a vivid purple. Because the pigments are heat‑stable up to about 200 °C (392 °F), the color survives the typical baking temperatures for cakes (around 175 °C/350 °F). The result is a cake whose crumb and frosting display the natural shade of the yam rather than an added synthetic dye.

Chemistry of anthocyanins

Anthocyanins are a subgroup of flavonoids that exist in several molecular forms, known as aglycones, which are linked to sugar molecules. The exact shade depends on pH, the presence of metal ions, and the specific anthocyanin structure. In a slightly acidic environment (pH 3–4), which is common in cake batters due to ingredients like lemon juice or cream of tartar, anthocyanins appear red‑purple. As the pH rises toward neutral, the color shifts toward blue‑violet. This pH sensitivity explains why some ube cakes look more magenta while others appear deep violet.

During baking, the batter’s pH can change slightly as leavening agents release carbon dioxide, but the overall acidity remains low enough to preserve the purple hue. Moreover, the presence of sugars and starches in the batter helps stabilize the pigment by forming complexes that protect anthocyanins from oxidative degradation.

How processing preserves the color

Professional bakers often steam or boil ube before pureeing it for cake batter. This step not only softens the tuber but also extracts the anthocyanins into the cooking water, which is then incorporated back into the puree. Because anthocyanins are water‑soluble, this method maximizes color extraction. After cooling, the puree is mixed with butter, sugar, eggs, and flour; the fat component does not dissolve the pigments, so the color remains in the aqueous phase of the batter.

Some recipes call for adding a small amount of acid, such as lemon juice or cream of tartar, to lock in the purple shade. The acid prevents the anthocyanins from shifting toward blue or brown during the high heat of baking. Additionally, avoiding prolonged exposure to high pH ingredients—like large amounts of baking soda—helps keep the color vibrant.

Choosing the right ube variety

Not all ube tubers are created equal. The intensity of the purple hue varies among cultivars, with some producing a pale lavender and others a deep indigo. Factors that influence pigment concentration include the tuber’s age, growing conditions, and storage time. Younger, freshly harvested ube typically contains higher anthocyanin levels than older roots that have been stored for months.

When selecting ube for a cake, look for firm, unblemished tubers with a rich, dark skin. If possible, choose varieties labeled “purple yam” rather than “white ube,” which lack significant anthocyanin content and will yield a much paler cake. The following list outlines key selection criteria:

  • Skin color: deep purple or violet is preferred.
  • Firmness: no soft spots or sprouting eyes.
  • Freshness: purchased within a few weeks of harvest.
  • Origin: tropical regions often produce more intensely colored tubers.

Common misconceptions about food coloring

Many people assume that the purple of ube cake comes from artificial food dye, but the authentic flavor and color are entirely natural. While some commercial mixes add a touch of synthetic dye to boost intensity, traditional Filipino recipes rely solely on the tuber’s own pigments. Adding extra dye can mask the subtle earthy sweetness that ube imparts.

Another myth is that ube loses its color when frozen. In reality, if the puree is frozen quickly and stored at a consistent temperature below –18 °C (0 °F), the anthocianins remain stable. Thawing slowly in the refrigerator preserves both texture and hue. However, repeated freeze‑thaw cycles can cause pigment breakdown, leading to a duller cake.

Safety and cooking guidelines

Ube itself is a safe, low‑risk ingredient, but standard bakery safety rules still apply. When preparing the batter, raw eggs should be handled with care to avoid salmonella contamination. Baking the cake to an internal temperature of at least 160 °F (71 °C) ensures that any potential pathogens are destroyed. Use a calibrated food‑grade thermometer inserted into the center of the cake for an accurate reading.

After baking, the cake should be cooled to room temperature within two hours and then refrigerated if not served immediately. Proper storage (covered, at 40 °F/4 °C or lower) extends shelf life to about five days. If the cake contains cream cheese frosting, the safe holding time drops to three days, and any signs of mold, off‑odors, or slime indicate spoilage and the cake should be discarded.

Natural alternatives and comparisons

While ube provides a distinctive purple, other natural sources can achieve similar shades. For example, butterfly pea flower extract yields a bright blue that can be shifted to purple with a splash of lemon juice. Beetroot juice produces a deep magenta, though its earthy flavor differs from ube’s sweet, nutty profile. Compared to synthetic dyes like Red 40 or Blue 1, natural pigments are less likely to cause allergic reactions and are perceived as healthier by many consumers.

When substituting another natural color for ube, consider both hue and flavor impact. Butterfly pea adds a subtle floral note, while beet introduces a faint earthy sweetness. Adjust the amount of acid and sweetener in the recipe to balance taste. Below is a quick comparison:

  • Ube – deep violet, sweet, nutty flavor.
  • Butterfly pea – bright blue‑purple, neutral taste.
  • Beetroot – magenta‑red, earthy sweetness.

Frequently Asked Questions

Does ube cake contain any artificial coloring?

Traditional ube cake relies solely on the natural anthocyanins in the purple yam. Some commercial mixes may add a tiny amount of synthetic dye for consistency, but authentic recipes do not require it.

Can I use frozen ube instead of fresh?

Yes. Freeze the cooked and pureed ube in airtight containers. Thaw it in the refrigerator before incorporating it into the batter to maintain both texture and color.

Why does my ube cake turn brown instead of staying purple?

Excessive alkalinity from too much baking soda can raise the batter’s pH, shifting anthocyanins toward brown or blue. Use the recommended leavening amounts and add a small acid (lemon juice or cream of tartar) to keep the pH low.

Is ube safe for people with food allergies?

Ube is a tuber and is not related to common allergens such as nuts, gluten, or dairy. However, individuals with a specific yam allergy should avoid it. Always check ingredient labels for cross‑contamination warnings.

How long can I store a baked ube cake?

At room temperature, a plain ube cake is safe for up to two days if covered. Refrigerated, it lasts about five days. With perishable frosting, limit storage to three days and discard if any spoilage signs appear.

Read next