Food

My Rainbow Cake Recipe: 7 Layers of Flavour

By Hayride Live · Updated

Total time
2 hr
Prep
45 min
Cook
30 min
Serves
12

A rainbow cake is a tall, multi-layered sponge where each tier is dyed a different colour of the spectrum and stacked to create a bright, cheerful interior. This version uses a reliable vanilla base that stays moist even after being baked in thin layers and coloured with gel food dye.

Ingredients for Seven Coloured Layers

  • 2 cups (250 g) all-purpose flour
  • 2 teaspoons baking powder
  • ½ teaspoon salt
  • 1 cup (226 g) unsalted butter, softened
  • 1¾ cups (350 g) granulated sugar
  • 4 large eggs, room temperature
  • 2 teaspoons pure vanilla extract
  • 1 cup (240 ml) whole milk
  • Gel food paste in red, orange, yellow, green, blue, purple, and pink

How to Mix the Batter Without Overworking It

  1. Preheat your oven to 350°F (175°C). Grease three 8-inch round cake pans and line the bottoms with parchment paper; you will need to bake the batter in batches.
  2. In a medium bowl, whisk together the flour, baking powder, and salt until fully combined.
  3. In a large mixing bowl, beat the softened butter and sugar on medium speed for about 4 minutes until the mixture is pale and fluffy.
  4. Add the eggs one at a time, beating well after each addition. Scrape down the sides of the bowl with a spatula and mix in the vanilla extract.
  5. Reduce the mixer to low speed. Add half of the flour mixture and mix until just incorporated. Pour in all of the milk, mix briefly, then add the remaining flour mixture. Stop mixing as soon as the last streaks of flour disappear.

Dyeing and Baking the Individual Tiers

  1. Divide the total batter into seven equal portions. Place each portion into a separate bowl.
  2. Add a small amount of gel food paste to each bowl. Use red, orange, yellow, green, blue, purple, and pink dyes. Gel paste provides intense colour without adding extra liquid that would ruin the texture.
  3. Stir each bowl by hand until the colour is uniform. If the batter looks too thick, add a teaspoon of milk to loosen it slightly.
  4. Pour one coloured batter into a prepared pan. Spread it evenly with an offset spatula.
  5. Bake for 18 to 22 minutes. The cakes are done when a toothpick inserted into the center comes out clean and the top springs back lightly when pressed.
  6. Remove the pan from the oven and let the cake cool inside for 10 minutes before turning it out onto a wire rack to cool completely.
  7. Repeat this process for all seven colours. You must let every layer cool completely to room temperature before stacking, or the frosting will melt.

Knowing When the Cake is Fully Set

The visual cues are the most reliable indicators for these thin sponges. Look for a golden-brown edge that pulls away slightly from the side of the pan. If the centre still looks wet or shiny, the cake needs another 2 to 3 minutes in the oven. Do not rely on smell alone, as sugar can burn before the structure sets.

Storage and Safe Handling Times

Once assembled, keep the cake in the refrigerator because the frosting acts as a barrier but does not stop moisture loss. A covered rainbow cake keeps well for 3 to 4 days in the fridge. For longer storage, wrap individual slices tightly in plastic wrap and freeze them for up to 3 months. Thaw frozen slices overnight in the refrigerator before serving.

Variations for Different Diets

To make this cake gluten-free, substitute the all-purpose flour with a high-quality 1-to-1 gluten-free baking blend that includes xanthan gum. Note that gluten-free batters often look thicker and may require a slightly longer bake time. For a dairy-free version, replace the butter with a solid vegetable shortening or a vegan butter stick, and use a plant-based milk alternative like soy or oat milk.

Equipment That Matters

Using gel food paste instead of liquid food colouring is the single most important equipment choice. Liquid colour adds water to the batter, which changes the ratio of wet to dry ingredients and can lead to dense, heavy layers. If you only have liquid colour, you will need to reduce the milk in the recipe by a tablespoon for each colour batch to compensate.

Serving and Pairing Ideas

This cake pairs well with light fruit toppings rather than heavy chocolate ganache, which can weigh down the delicate sponge. Fresh strawberries, raspberries, or sliced kiwi complement the bright colours perfectly. Serve with a glass of chilled sparkling cider or lemonade to balance the sweetness.

Spotted a mistake? Tell us and we will correct it. How we write and check articles.