This rainbow layer cake is a vanilla buttermilk cake divided into six vibrantly colored layers, stacked with silky vanilla buttercream and a white chocolate drip. It looks like a bakery centerpiece, but the process is straightforward: one batter, six bowls, a little food coloring, and a steady hand with a serrated knife. The buttermilk keeps every layer tender and moist, while the buttercream is stable enough for a tall stack without being overly sweet.
Ingredients
- For the cake:
- 3 cups (360 g) all-purpose flour
- 2 teaspoons baking powder
- 1/2 teaspoon baking soda
- 1 teaspoon fine salt
- 1 cup (2 sticks, 226 g) unsalted butter, softened
- 1 3/4 cups (350 g) granulated sugar
- 3 large eggs, room temperature
- 1 tablespoon vanilla extract
- 1 1/2 cups (360 ml) buttermilk, room temperature
- Gel food coloring in red, orange, yellow, green, blue, and purple (or pink, teal, etc.)
- For the vanilla buttercream:
- 1 1/2 cups (3 sticks, 340 g) unsalted butter, softened
- 4 cups (480 g) powdered sugar, sifted
- 2 tablespoons heavy cream (or milk)
- 1 tablespoon vanilla extract
- Pinch of salt
- For the drip and decoration:
- 1/2 cup (120 ml) white chocolate chips or chopped white chocolate
- 2 tablespoons heavy cream
- Rainbow sprinkles (optional)
Instructions
- Prep the pans and oven: Heat the oven to 350°F (175°C). Grease three 8-inch round cake pans and line the bottoms with parchment paper. (You will bake in batches, or use six pans if you have them.)
- Make the cake batter: In a medium bowl, whisk together flour, baking powder, baking soda, and salt. In a large bowl, beat the butter and sugar with an electric mixer on medium-high until light and fluffy, about 3 minutes. Add eggs one at a time, beating well after each. Beat in vanilla. Reduce speed to low and add the flour mixture in three additions, alternating with buttermilk, starting and ending with flour. Mix just until combined—do not overmix.
- Divide and color the batter: Divide the batter evenly among six bowls (about 1 1/4 cups each). Add gel food coloring to each bowl to create six colors: red, orange, yellow, green, blue, and purple. Stir each until the color is uniform. Use a toothpick to add more color if needed—gel colors are concentrated, so start with a small amount.
- Bake the layers: If using three pans, bake three colors at a time. Pour one colored batter into each prepared pan. Bake for 18–22 minutes, until a toothpick inserted in the center comes out clean. Let cool in the pans for 10 minutes, then turn out onto a wire rack to cool completely. Repeat with the remaining three colors. (If you have six pans, bake all at once, but rotate the racks halfway through.)
- Make the buttercream: In a large bowl, beat the softened butter on medium-high until smooth and creamy, about 2 minutes. Add the powdered sugar one cup at a time, beating on low after each addition until incorporated. Add heavy cream, vanilla, and salt. Beat on medium-high for 2–3 minutes until light and fluffy. If too stiff, add a teaspoon more cream; if too soft, chill for 10 minutes.
- Level the cakes: Once the cakes are completely cool, use a serrated knife to trim the domed tops so each layer is flat. (You can save the scraps for snacking or cake pops.)
- Stack and frost: Place the purple layer on a cake board or serving plate. Spread about 1/3 cup of buttercream evenly over the top. Repeat with blue, green, yellow, orange, and finally red on top. Apply a thin crumb coat (a thin layer of buttercream over the entire cake) and chill for 20 minutes. Then apply a final, thicker coat of buttercream, smoothing with an offset spatula. Chill the cake for at least 15 minutes before the drip.
- Make the white chocolate drip: In a small microwave-safe bowl, combine white chocolate and heavy cream. Microwave in 20-second bursts, stirring between each, until smooth. Let cool for 5–10 minutes, until it thickens slightly but is still pourable. Test on a spoon: it should run slowly and coat the back of a spoon.
- Add the drip and sprinkles: Pour the drip over the top of the chilled cake, letting it run down the sides. Use a spoon to guide it if needed. Immediately top with rainbow sprinkles before the drip sets. Chill the cake for 30 minutes to set the drip.
Tips
- Use gel food coloring, not liquid. Liquid colors are too watery and will thin the batter; gel gives vivid colors without changing the texture. A little goes a long way.
- Weigh your batter for even layers. Use a kitchen scale to divide the batter equally among the six bowls (each should be about 300 g). This ensures the layers are the same thickness and bake evenly.
- Chill between frosting steps. A chilled cake is much easier to frost and drip. Don't skip the crumb coat—it traps crumbs and gives a clean finish.
- If the drip is too thin, let it cool longer. If it's too thick, add a teaspoon of cream and reheat gently.
Serving Suggestions
Serve this cake at birthday parties, baby showers, or any celebration that calls for a wow factor. It pairs beautifully with a glass of cold milk, coffee, or a fruity sparkling drink. For a dramatic slice, cut with a sharp knife dipped in hot water and wiped dry between cuts—this gives clean, vibrant slices.
Variations
- Pastel rainbow: Use just a drop of each gel color for softer, pastel shades.
- Chocolate rainbow: Replace 1/2 cup of the flour with unsweetened cocoa powder for a chocolate base, and use a chocolate or vanilla buttercream.
- Different flavors: Swap the vanilla extract for almond or lemon extract, or add a teaspoon of citrus zest to the batter.
- No-drip version: Skip the white chocolate drip and simply decorate the top with a swirl of buttercream and a pile of sprinkles.
Storage and Reheating
Store the assembled cake in an airtight container in the refrigerator for up to 3 days. Let it sit at room temperature for 30–60 minutes before serving to soften the buttercream. To freeze, wrap individual unfrosted layers in plastic wrap and then foil; freeze for up to 2 months. Thaw in the refrigerator overnight before frosting. Frosted cake can also be frozen for up to 1 month, but it's best to add the drip after thawing.
Frequently Asked Questions
Can I use a boxed cake mix instead of making from scratch?
Yes. Use a white or vanilla boxed cake mix, prepare the batter as directed, then divide and color it in six bowls. Bake according to the box instructions, but check for doneness a few minutes early since you're using less batter per pan.
How do I get the colors to be so vibrant?
Use gel food coloring and add enough to reach the depth you want. Gel colors are highly concentrated, so you can add more without thinning the batter. For truly neon shades, use a neon gel set.
Why did my cake layers come out uneven?
This usually happens if the batter is not divided equally or if the oven has hot spots. Weigh the batter and rotate the pans halfway through baking. Also, always level the cooled cakes with a serrated knife.
Can I make this cake in advance?
Yes. Bake the layers up to 2 days ahead and store them wrapped in plastic at room temperature, or freeze for up to 2 months. You can also make the buttercream ahead and refrigerate it for up to 1 week; bring to room temperature and re-whip before using.
My drip ran all the way off the cake. What went wrong?
The drip was too warm or too thin. Let the white chocolate mixture cool longer until it thickens to a honey-like consistency. Also, make sure the cake is well chilled before pouring.
Can I use a different frosting?
Absolutely. Cream cheese frosting, whipped ganache, or a stabilized whipped cream all work. If using whipped cream, keep the cake refrigerated and serve within 24 hours.