• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

oliviahealthyliving.com logo

  • Appetizers
  • Breakfast
  • Dinner
  • Dessert
  • Lunch
  • Drinks
  • Tips recipes
menu icon
go to homepage
search icon
Homepage link
×
Home » Desserts » Rainbow Cake Recipe That'll Steal the Show

Published: Oct 17, 2025 · Modified: Oct 28, 2025 by MOHAMED OUHAMMi

Rainbow Cake Recipe That'll Steal the Show

This post may contain affiliate links

↓ Jump to Recipe

There's something magical about slicing into a cake and revealing layers of vivid color inside. This Rainbow Cake Recipe brings that wow-factor to any celebration, whether it's a birthday party, baby shower, or just because Tuesday needed more joy. I'll be honest the first time I made this cake, my daughter walked into the kitchen, saw those bright layers cooling on the counter, and literally squealed. That reaction alone made every minute of prep time worth it.

Now, I know what you're thinking: "A layer cake with seven colors sounds complicated." But here's the thing this recipe breaks everything down into manageable steps. Yes, you'll be working with multiple bowls and food coloring, but the actual technique is straightforward. If you can make a basic cake (and even if you're still perfecting that skill), you can absolutely pull this off.

Jump To Recipe
  • Why You'll Love This Rainbow Cake Recipe
  • What You'll Need
  • Mixing the Perfect Cake Batter
  • Creating Your Rainbow Layers
  • Whipping Up Vanilla Buttercream
  • Stacking and Frosting Your Masterpiece
  • Adding the Rainbow Swirls
  • Tips for Rainbow Cake Success
  • Making It Your Own
  • Storing Your Rainbow Creation
  • Frequently Asked Questions
  • Conclusion
  • Rainbow Cake Recipe That'll Steal the Show

Why You'll Love This Rainbow Cake Recipe

This isn't just a pretty cake though it's definitely Instagram-worthy. The vanilla cake layers are moist and tender, with just the right amount of sweetness. The buttercream frosting is silky smooth without being overly sugary. Together, they create a dessert that tastes as good as it looks.

The beauty of this recipe is its versatility. Use it as a birthday cake centerpiece, turn it into rainbow cupcakes, or adapt the technique for other colorful desserts. Once you master these layers, you'll find yourself reaching for this recipe again and again. It's become my secret weapon for impressive layer cakes that look bakery-level without the bakery price tag.

Rainbow painted cake with white frosting swirls on top

What You'll Need

The ingredient list might look long, but most of these are baking basics you probably already have. For the cake layers, you'll need standard pantry staples: all-purpose flour, granulated sugar, baking powder, salt, butter, vanilla, egg whites, buttermilk, and a splash of oil. The real stars here are gel food colorings in red, yellow, blue, and pink.

For the frosting, grab unsalted butter (lots of it), powdered sugar, heavy cream, vanilla, and more gel colors to create that rainbow effect. I strongly recommend using gel food coloring instead of liquid it gives you vibrant colors without thinning your batter or frosting. You can find these at any craft store or online.

If you don't have buttermilk on hand, you can make a quick substitute by adding a tablespoon of white vinegar or lemon juice to regular milk. Let it sit for five minutes, and you're good to go. This trick works for so many classic cake recipes when buttermilk isn't in the fridge.

Mixing the Perfect Cake Batter

Start by preheating your oven to 350°F and prepping four 7-inch round cake pans. Line them with parchment rounds and give them a light spray of non-stick cooking spray. This step matters nobody wants their beautiful rainbow layers stuck to the pan.

In your stand mixer with a paddle attachment, pulse together the flour, baking powder, sugar, and salt. Add chunks of room-temperature butter and mix on low speed until the mixture turns crumbly with no large butter chunks remaining. This reverse creaming method creates an incredibly tender crumb that makes these homemade cakes better than anything from a box.

Pour in the egg whites and mix on low until just incorporated. Add the buttermilk in two batches, mixing gently between each addition. Finally, mix in the vanilla and oil until everything comes together. Scrape down the sides of the bowl and give it one last 15-second beat on low speed.

Creating Your Rainbow Layers

Here comes the fun part. Divide your batter evenly between four bowls aim for about 450 grams per bowl if you have a kitchen scale. If not, just eyeball it as best you can. A few drops of gel food coloring go a long way, so start small. Add red to one bowl, yellow to another, blue to the third, and pink to the fourth. Mix each by hand with a spatula until the color is evenly distributed.

Pour each colored batter into its own prepared pan. Bake for 34-37 minutes, checking with a toothpick for doneness. The layers should spring back when lightly pressed and pull away slightly from the pan edges. Let them cool in the pans for 10 minutes before running an offset spatula around the edges to loosen them.

Here's my shortcut: pop those layers in the freezer for 45 minutes to speed up cooling. This is especially helpful when you're making celebration cakes on a tight schedule. Once they're completely cool, flip them out of the pans and level the tops with a serrated knife. Save those scraps for "quality control" tasting chef's privilege.

Whipping Up Vanilla Buttercream

While your cake layers bake and cool, tackle the frosting. Beat room-temperature butter in your stand mixer for 30 seconds until smooth. Gradually add powdered sugar, one cup at a time, alternating with small splashes of heavy cream. This prevents that sugar cloud explosion that seems to coat every surface of your kitchen.

Once all the sugar is incorporated, add vanilla and salt. Beat on low until you reach the perfect consistency thick enough to hold its shape but spreadable. If your frosting feels too thick, add cream a teaspoon at a time. Too thin? Add more powdered sugar in quarter-cup increments.

For the rainbow filling, divide one cup of frosting into three separate bowls. Color them orange, green, and purple. Keep the remaining frosting white for now—you'll color more later for the exterior decoration. This buttercream frosting is the same one I use for vanilla cakes and decorated cookies. It's reliable, delicious, and holds up beautifully.

Stacking and Frosting Your Masterpiece

Place a greaseproof cake board on your work surface and secure the first layer with a small dab of frosting. Start with the red layer on the bottom. Spread a generous layer of orange buttercream on top, leaving about ¼ cup for later decoration. Add the yellow layer next, then frost with green buttercream, again reserving a small amount.

Continue building with the blue layer topped with purple buttercream, and finally add the pink layer upside down this gives you a flat surface to frost. The caramelized bottom becomes the top, making your crumb coat so much easier.

Apply a thin layer of white frosting around the entire cake. This crumb coat seals in any loose crumbs and gives you a smooth foundation. Use a bench scraper to smooth the sides, then chill the cake in the fridge for 10 minutes or the freezer for 5 minutes until the frosting feels firm.

Add a second, thicker layer of frosting and smooth it again with your bench scraper. Chill the cake for another 10-15 minutes in the freezer or 30 minutes in the fridge. These frosting techniques take a little patience, but they're what separate good cakes from great ones.

Adding the Rainbow Swirls

This final decoration step is where your cake truly becomes a showstopper. Fill a piping bag fitted with an Ateco 869 tip (or another large French tip) with about 1½ cups of white buttercream. In four small bowls, color about ½ cup of frosting each with red, yellow, blue, and pink gel coloring.

Using a small offset spatula, spread dabs of each colored frosting randomly around your chilled cake. Don't overthink this part overlap the colors, let them blend at the edges, and have fun with it. There's no wrong way to do this. My nine-year-old helped me with this step last time, and her version looked just as beautiful as mine.

Pipe a border of white buttercream around the top edge using your prepared piping bag. This frames all those colorful swirls and gives the cake a finished, professional look. If you're feeling creative, you can also add rainbow sprinkles or edible decorations for extra flair.

Tips for Rainbow Cake Success

Room temperature ingredients are crucial here. Cold butter won't mix properly, and cold egg whites can cause your batter to curdle. Set everything out about an hour before you start baking. If you're in a hurry, you can microwave cold eggs in their shells for 10-15 seconds (no longer!) to take the chill off.

Invest in gel food coloring if you haven't already. Liquid food coloring just doesn't give you those vibrant, saturated colors. Plus, gel doesn't thin your batter or frosting. A little goes a long way, so these bottles last through many colorful baking projects.

If you only have three cake pans instead of four, no problem. Bake three layers at once, then refrigerate the remaining batter while the oven's occupied. Wash one pan quickly and bake the fourth layer. The batter holds up fine at room temperature for the extra 35-40 minutes.

For cleaner cake slices, dip your knife in hot water and wipe it clean between cuts. This prevents frosting smears and gives you those picture-perfect rainbow layers. It's the same trick I use when cutting layered desserts and fancy cakes.

Making It Your Own

This recipe is wonderfully adaptable. Change up the colors for different occasions pink and blue for a gender reveal cake, red and green for a Christmas dessert, or pastels for a spring celebration. You could even create an ombre effect by using different shades of the same color family.

Try different frosting flavors too. The vanilla buttercream is perfect, but chocolate frosting, cream cheese frosting, or lemon buttercream would all work beautifully. Just keep the vanilla cake layers as your base—they provide the perfect neutral canvas for any flavor combination.

If you're making this for a larger crowd, the recipe scales up easily. Double the ingredients and use six or eight 9-inch pans for a massive party cake. You can also turn this into rainbow cupcakes by filling cupcake liners with small amounts of each colored batter before baking.

Rainbow layer cake slice showing six colored layers

Storing Your Rainbow Creation

Once assembled and decorated, this cake stays fresh at room temperature for up to two days if your kitchen is relatively cool. In warmer weather or humid conditions, refrigerate it. The buttercream might firm up in the fridge, but it'll soften again at room temperature in about 30 minutes.

For longer storage, wrap unfrosted cake layers tightly in plastic wrap and freeze them for up to three months. Frozen layers actually frost more easily they're sturdier and shed fewer crumbs. Thaw them in the fridge overnight before assembling. This is how I prep for big events without the last-minute stress.

Leftover frosted cake can be frozen too, though the texture of the frosting may change slightly. Wrap individual slices in plastic wrap, then place them in a freezer bag. Pull out a slice whenever you need a quick sweet treat or surprise dessert.

Frequently Asked Questions

Can I use all-purpose egg whites from a carton?

Absolutely. Carton egg whites work perfectly in this recipe and save you the hassle of separating eggs. Just measure out one cup (240 grams). I actually prefer using carton whites for white cakes because they're so convenient.

What if I don't have gel food coloring?

You can use liquid food coloring in a pinch, but you'll need more of it to achieve vibrant colors, and it may slightly thin your batter. Start with small amounts and add more as needed. The colors won't be quite as bold as with gel, but your cake will still be beautiful.

How do I prevent my cake layers from doming?

Using 7-inch pans helps, as does the reverse creaming method in this recipe. You can also try using baking strips—damp fabric strips wrapped around your pans—which help cakes bake more evenly. Or simply embrace the dome and level your layers with a serrated knife. Those scraps make excellent cake pops.

Can I make this cake ahead of time?

Yes! Bake the layers up to two days ahead, wrap them well, and store them in the fridge. Make the frosting the day before and keep it at room temperature (just beat it briefly before using). Assemble and decorate the day of your event. You can also freeze the assembled, crumb-coated cake for up to a week. Add the final decorations after thawing.

Conclusion

There's something special about sharing a cake that makes people genuinely happy. When you cut into this Rainbow Cake Recipe and those colorful layers are revealed, you get to see real delight on people's faces. That's the best part of baking from scratch creating those little moments of joy and surprise. Whether you're celebrating a birthday, milestone, or just surviving another week, this cake brings the party.

Rainbow cake recipe promotional graphic
Rainbow cake with painted buttercream and slice view
Print
clock clock iconcutlery cutlery iconflag flag iconfolder folder iconinstagram instagram iconpinterest pinterest iconfacebook facebook iconprint print iconsquares squares iconheart heart iconheart solid heart solid icon
Rainbow cake with artistic painted frosting

Rainbow Cake Recipe That'll Steal the Show


5 Stars 4 Stars 3 Stars 2 Stars 1 Star

No reviews

  • Author: Olivia
  • Total Time: 1 hour 20 minutes
  • Yield: 12 servings 1x
  • Diet: Vegetarian
Print Recipe
Pin Recipe

Description

A show-stopping rainbow layer cake with moist vanilla sponge and silky buttercream, perfect for celebrations.


Ingredients

Scale
  • 3 cups all-purpose flour
  • 2 cups granulated sugar
  • 1 tbsp baking powder
  • 1 tsp salt
  • 1 cup unsalted butter, room temperature
  • 1 cup egg whites (about 8 large eggs)
  • 1 ½ cups buttermilk
  • 2 tsp vanilla extract
  • 2 tbsp vegetable oil
  • Gel food coloring: red, yellow, blue, pink
  • Buttercream: 2 cups unsalted butter, room temperature
  • 6 cups powdered sugar
  • ⅓ cup heavy cream
  • 2 tsp vanilla extract
  • Salt, to taste
  • Extra gel colors for frosting decoration


Instructions

  1. Preheat oven to 350°F (175°C) and line four 7-inch pans with parchment paper.
  2. Combine flour, sugar, baking powder, and salt in a mixer. Add butter and mix until crumbly.
  3. Add egg whites, then buttermilk in two parts. Mix in vanilla and oil until smooth.
  4. Divide batter into four bowls and color each red, yellow, blue, and pink.
  5. Pour each color into its pan and bake 34–37 minutes. Cool completely.
  6. Prepare buttercream by beating butter, then adding powdered sugar gradually with cream and vanilla.
  7. Divide a portion of frosting into small bowls and tint orange, green, and purple for layer fillings.
  8. Layer cakes: red layer with orange frosting, yellow with green, blue with purple, finishing with pink layer upside down.
  9. Crumb coat with white frosting and chill for 10 minutes.
  10. Add a final frosting layer and smooth. Chill again briefly.
  11. Decorate with colored buttercream swirls and pipe white borders on top.
  12. Optional: add rainbow sprinkles or edible decorations.

Equipment

Image of Sharp knife

Sharp knife

Buy Now →
Image of plate

plate

Buy Now →

Notes

Use gel food coloring for vibrant hues. Room temperature ingredients ensure a smooth batter. Chill between frosting steps for clean results.

  • Prep Time: 45 minutes
  • Cook Time: 35 minutes
  • Category: Dessert
  • Method: Baking
  • Cuisine: American

Nutrition

  • Serving Size: 1 slice
  • Calories: 620
  • Sugar: 56g
  • Sodium: 310mg
  • Fat: 29g
  • Saturated Fat: 18g
  • Unsaturated Fat: 9g
  • Trans Fat: 0g
  • Carbohydrates: 80g
  • Fiber: 0g
  • Protein: 5g
  • Cholesterol: 95mg

Did you make this recipe?

Share a photo and tag us — we can't wait to see what you've made!

More Desserts

  • Cranberry orange bread slices on wire cooling rack
    Orange Glazed Cranberry Bread Recipe
  • Caramel apple cheesecake bars with caramel drizzle
    Caramel Apple Cheesecake Bars Recipe
  • Pumpkin cream cheese bread loaf with slices showing swirl pattern
    Pumpkin Cream Cheese Bread Recipe Perfection
  • Pumpkin cheesecake slice with caramel and cream
    The Best Pumpkin Cheesecake for Fall Gatherings

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recipe rating 5 Stars 4 Stars 3 Stars 2 Stars 1 Star

Primary Sidebar

olivia preparing cookies

Welcome!

Hi, I’m Olivia! The heart and hands behind this blog, inspired by the love and warmth of my family’s kitchen. Cooking has always been my way of bringing people together, and here, I share recipes that are simple, delicious, and filled with heart. Let’s make something special together!

Let’s be friends!

More about me

Popular

  • Pile of cinnamon sugar donuts with one broken apart
    Baked Apple Cider Donuts Worth Waking Up For
  • Frosted pumpkin cinnamon rolls on a serving platter
    Pumpkin Cinnamon Rolls: Fall's Coziest Breakfast
  • Stacked brown butter pecan cookies side view
    Butter Pecan Cookies That Taste Like Home
  • Close-up of apple crumble with ice cream
    The Perfect Apple Crumble Recipe for Busy Weeknights

Seasonal

  • Overhead view of baked sweet potato pie
    Southern Sweet Potato Pie That Feels Like Home
  • Top view pecan pie with slices removed
    Best Southern Pecan Pie That Actually Works
  • Apple pie slice with flaky crust and cinnamon filling
    The Perfect Easy Apple Pie Recipe
  • Traditional pumpkin pie slice with whipped cream topping
    Classic Pumpkin Pie Recipe That Never Fails

Footer

My Favorites

Cranberry orange bread slices on wire cooling rack
Caramel apple cheesecake bars with caramel drizzle
Pile of cinnamon sugar donuts with one broken apart

stay connected

  • Facebook
  • Pinterest

Footer

↑ back to top

  • Terms of services
  • Affiliate disclaimer
  • Privacy policy
  • gdpr

  • Contact

Copyright © 2025 | OLivia healthy living