• Cake
  • Frosting
  • YouTube
  • My Favorite Tools
  • Nav Social Icons

  • Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Recipes
    • Cake
    • Cupcakes
    • Frosting
    • Ice Cream
    • Vegan
  • Cake Basics
  • Tutorials
  • Blog
  • About
  • Mobile Menu Widgets

    Connect

    Search

Sugar & Sparrow logo in script font

Sugar & Sparrow

Lifestyle and Cake from Portland Oregon

  • Cake Basics
  • Recipes
    • Cake
    • Cupcakes
    • Cookies & Bars
    • Filling
    • Frosting
    • Ice Cream
    • No-Bake
    • Small Batch
    • Vegan
  • Tutorials
  • Book
  • Blog
  • About

The Ultimate Rainbow Cake (Inside and Out!)

March 7, 2026 · In: Cake, Featured, Recipes, Tutorials

Jump to Recipe

This is the ULTIMATE rainbow cake – six layers of rainbow colored cake layers inside, rainbow striped buttercream on the outside, and a rainbow sprinkled swirl border on top. I used my bakery-style white cake for the cake layers, which is super soft, moist, and easy to tint any color of the rainbow. The filling and frosting is my favorite vanilla buttercream, which is easy to make, silky smooth, and packed with vanilla flavor. All together, this cake is visually stunning inside and out, and tastes like soft vanilla cake heaven! 

rainbow cake layers recipe with rainbow buttercream
rainbow cake slice on a plate

Rainbow Cake Elements & Supplies  

This rainbow cake is definitely a project, but as long as you plan it out and have the right supplies, it’s super fun! Here’s everything that goes into this cake:

  • Bakery-Style White Cake. The recipe begins by making my bakery-style white cake. It’s the softest, fluffiest vanilla cake recipe that tastes like it came from your favorite bakery, but it’s 100% HOMEMADE! It’s super moist (and stays that way for days), packed with vanilla flavor, and made with egg whites to keep the color of the cake nearly white. That makes it perfect for tinting rainbow colors. 
  • Vanilla Buttercream. My favorite vanilla buttercream is the filling and frosting for the rainbow cake, which is an incredibly easy American buttercream recipe that’s been tailored to be less sweet than average. Any white buttercream will work with this recipe, but you’ll need a lot of it – a little over 6 Cups – and it needs to be easy to tint rainbow colors. 
  • Food Coloring. I used Wilton Color Right food colors for tinting the cake layers and buttercream, and I’ve listed more brands I love below. 
  • Round Cake Pans. To create six cake layers in different colors, it’s very helpful to have six 6-inch cake pans.This way you can divide the batter evenly, add the food coloring, and distribute it between the pans and bake them all at once. If you only have a few cake pans, you’ll benefit greatly from having a kitchen scale so you can weigh the batter. Each pan has about 200g of cake batter in it, so with a kitchen scale you can weigh out what you need and bake in batches. 
  • Cake Decorating Equipment. To decorate this rainbow cake as pictured, you’ll need a cake turntable, piping bags, icing spatulas, an icing smoother, and a piping tip for the swirls on top. I used Wilton Tip 4B for the swirls pictured.  
  • Rainbow Sprinkles. Colorful rainbow sprinkles are the perfect finishing touch! I used Sprinkle Pop Rainbow Road sprinkles for this cake but any rainbow sprinkles will do the trick. 
Rainbow cake layers made with vanilla cake recipe

What Food Coloring Should I Use? 

Any kind of food coloring will work to make this rainbow cake, but I love using gel food coloring. For the pastel rainbow color palette pictured here, I used the Wilton Color Right Performance Food Coloring System, which is a set of colors that can be mixed to create custom colors. I used the red, orange, yellow, and blue from the kit as-is, for the green I mixed yellow and blue, and for the purple I mixed the pink and blue. All the food coloring brands that I love are:

  • AmeriColor
  • Wilton
  • Colour Mill – oil-based gel that’s great for meringue-based buttercreams
  • Chefmaster
  • ENCO Naturals – if you’re looking for dye-free natural food coloring
Striped rainbow cake with vanilla buttercream
striped buttercream rainbow cake tutorial

How to Make a Rainbow Layer Cake 

Step 1. Make the rainbow cake layers. Make the cake batter and divide it evenly between 6 bowls. You should have about 200g per bowl. Add food coloring to each bowl to create red, orange, yellow, green, blue, and purple cake layers, then bake the layers. Cool them to room temperature before filling and frosting.

how to tint cake batter rainbow colors
rainbow colored cake layers in pans

Step 2. Make the vanilla buttercream, fill, and crumb coat the cake. Make the vanilla buttercream, then prepare the cooled cake layers by leveling each one to a uniform height. Place the purple cake layer onto the turntable and add a thin (about 1/8 inch) layer of vanilla buttercream as filling, then place the blue layer on top. 

filling and stacking a rainbow layer cake

Repeat the process in reverse rainbow order before crumb coating the cake and placing it in the refrigerator to let the frosting firm up.

filling and crumb coating rainbow layer cake

Step 3. Make the rainbow buttercream. Reserve about 1 Cup of buttercream for the swirls on top, then divide the rest of the buttercream between 6 bowls. One bowl (the one you’ll tint red) should have slightly more buttercream since it will be used for the top of the cake and one of the stripes. Add food coloring to each bowl to create red, orange, yellow, green, blue, and purple buttercream.

rainbow buttercream colors

Step 4. Create the rainbow stripes. Place each buttercream color into a separate piping bag. Starting at the bottom with the purple buttercream, squeeze the piping bag while you rotate the turntable to add stripes of buttercream to the cake. Try to keep each color in line with the colors of the cake layers so they line up when the cake is sliced. Repeat the process in reverse rainbow order.

frosting a cake with rainbow buttercream stripes

Add the red buttercream on top of the cake after piping the red stripe, then smooth it down with an icing spatula to create a flat top. Use the icing smoother to create a smooth buttercream finish on the sides of the cake before swiping the top edges inward to create sharp edges.

rainbow buttercream cake tutorial

Be sure to clean your icing smoother often so that the rainbow colors don’t mix in the smoothing process. Even still, the stripes might look messy at first, but trust the process! 

Step 5. Pipe the swirls on top and add the sprinkles. Place the reserved white buttercream into a piping bag fitted with Wilton Tip 4B and pipe a swirl border on top of the cake, then garnish with rainbow sprinkles.

rainbow cake with white swirls on top and rainbow sprinkles

This is truly the most magical rainbow cake and a true showstopper – perfect for St. Patrick’s Day, birthdays, baby showers, and any celebration that could use more fun and whimsy!  

rainbow cake recipe with rainbow buttercream
rainbow striped buttercream cake with white swirls on top

I can’t get over how beautiful each slice is.

rainbow cake slice

More Rainbow Recipes You’ll Love

If you need more rainbow desserts in your life, here are some of my favorites from the blog:

  • Easy Rainbow Cupcakes
  • Pastel Rainbow Birthday Cake
  • Gradient Rainbow Buttercream Cake
  • Green Velvet Cake with Rainbow Frosting
  • Funfetti Layer Cake
rainbow cake recipe with rainbow frosting

This rainbow cake is sure to dazzle everyone at your next event and I hope you love it as much as I do! Let me know if you make it in the comments below and feel free to tag @sugarandsparrowco on Instagram and show me – I love to see your baking projects!

Rainbow layer cake with rainbow frosting

Rainbow Cake with Rainbow Buttercream

The ULTIMATE rainbow cake: six layers of rainbow colored cake layers inside, rainbow striped buttercream on the outside, and a rainbow sprinkled swirl border on top. The cake layers are made with my bakery-style white cake recipe (extra soft and moist!), then filled and frosted with my favorite vanilla buttercream.
Print Recipe Pin Recipe
Prep Time:1 hour hr
Cook Time:30 minutes mins
Cooling Time:3 hours hrs
Total Time:4 hours hrs 30 minutes mins
Course: Dessert
Cuisine: American
Servings: 20 slices

Equipment

  • Six 6-inch cake pans

Ingredients

Rainbow Cake

  • 2 1/2 Cups (265g) sifted cake flour* DIY recipe in notes
  • 2 tsp baking powder
  • 1/2 tsp baking soda
  • 1/2 tsp salt
  • 1 1/2 Cups (300g) granulated sugar
  • 1/2 Cup (113g) unsalted butter, room temperature
  • 4 large egg whites, room temperature
  • 1/2 Cup (120ml) vegetable oil
  • 1 Tbsp pure vanilla extract
  • 1 1/4 Cups (300ml) full-fat buttermilk*, room temperature DIY recipe in notes
  • red, orange, yellow, green, blue, and purple food coloring

Vanilla Buttercream

  • 2 Cups (452g) unsalted butter, room temperature
  • 7 Cups (840g) powdered sugar
  • 4 tsp pure vanilla extract
  • 1/4 Cup whole milk, room temperature
  • pinch of salt, or to taste
  • red, orange, yellow, green, blue, and purple food coloring

Garnish

  • 2 Tbsp rainbow sprinkles

Instructions

Make the Rainbow Cake

  • Preheat the oven to 325°F (163°C) and prepare six 6-inch cake pans by spraying the sides with baking spray and fitting a parchment paper circle to the bottom of each pan.
  • In a medium bowl, add the flour, baking powder, baking soda and salt. Whisk together and set aside.
  • In the bowl of a stand mixer fitted with the paddle attachment, beat the butter at high speed until creamy, about 2 minutes. Add the sugar and cream it together with the butter at medium-high speed until light and fluffy, about 2 minutes, scraping the bowl and paddle at the halfway point. Turn the mixer to low and add the egg whites one at a time, mixing until they are just combined and scraping down the bowl and paddle as needed. Add the vegetable oil and vanilla, increase the mixer speed to high and beat for 1 minute.
  • Turn the mixer off and add the flour mixture all at once. Mix the ingredients on low speed until just combined, then slowly pour in the buttermilk. Continue mixing at low speed for about 30 seconds, until the batter is uniform and combined. The batter will be slightly thin.
  • Divide the batter evenly between six bowls. You should have about 200g of batter per bowl. In the first bowl, whisk in a few drops of red food coloring until you create red colored batter (keep in mind it will darken in the baking process!). Repeat the process with the remaining bowls using orange, yellow, green, blue, and purple food coloring.
  • Pour each bowl of batter into a separate cake pan and bake for 18-22 minutes, until the layers spring back to the touch and a toothpick inserted comes out clean. Let the cake layers cool in their pans for 5 minutes, then remove them from the pans and allow them to cool completely on a wire rack.

Make the Vanilla Buttercream

  • With a hand mixer or paddle attachment on your stand mixer, cream the butter on medium-high until it’s creamy and light (almost white) in color. About 7 minutes. 
  • With the mixer on low, add the powdered sugar one cup at a time, scraping down after each addition and making sure each cup is fully incorporated before adding the next one. Add the vanilla, milk, and salt and mix on low for another minute until fully incorporated. Wait to add the food coloring until Step 2 of the Assembly process below.

Assembly

  • Once the cake layers are completely cooled, level them to get rid of any domed tops and create even layers. Add a swipe of vanilla buttercream onto a cardboard cake circle and place the first cake layer on top. Fill and stack the cake layers in reverse rainbow order, using about 1/8 inch of buttercream between each layer. When you get to the final cake layer, place it upside down on top of the stack, then crumb coat the cake with vanilla buttercream. Refrigerate the cake for 15-20 minutes to let the crumb coat firm up while you prepare the rest of the buttercream.
  • Color the Buttercream: Reserve about 1 Cup of buttercream for the swirls on top, then divide the rest of the buttercream between 6 bowls. One bowl (the one you’ll tint red) should have slightly more buttercream since it will be used for the top of the cake and one of the stripes. Add food coloring to each bowl to create red, orange, yellow, green, blue, and purple buttercream.
  • To create the rainbow striped design pictured: Add each buttercream color into its own piping bag and cut off about 1/2 inch opening. Starting at the bottom with the purple buttercream, squeeze the piping bag while you rotate the turntable to add stripes of buttercream to the cake. Try to keep each color in line with the colors of the cake layers so they line up when the cake is sliced. Repeat the process in reverse rainbow order, then cover the top of the cake with red buttercream. Smooth the top down with an angled spatula, then create a smooth finish on the sides with your icing smoother before swiping the top edges inward to create sharp edges.
  • Add the reserved white buttercream into a piping bag fitted with Tip 4B and pipe swirls on top of the cake, then garnish the swirls with rainbow sprinkles.

Notes

*DIY cake flour recipe: if you can’t find cake flour locally, here’s how to make a homemade version using all purpose flour and cornstarch. Keep in mind that if you do use the homemade version, the gram measurement will weigh more (295g instead of 265g) since all-purpose flour is heavier than cake flour.  
*DIY buttermilk recipe: add 1 Tbsp of white vinegar to a jar and top it with 1 1/4 Cups of whole milk. Stir and let sit for 15 minutes before using in the recipe.
Make ahead tips: 
  1. The cake layers can be made ahead and stored at room temperature, covered tightly in plastic wrap, for up to two days. Alternatively, you can cover with plastic wrap and store in the freezer for up to two months before thawing to room temperature. 
  2. The vanilla buttercream can be made ahead and stored in an airtight container in the refrigerator for up to two weeks. When you’re ready to use it, bring it back to room temperature and re-whip in your stand mixer to bring back to smooth buttercream consistency. 

By: Whitney · In: Cake, Featured, Recipes, Tutorials · Tagged: pride cake, rainbow buttercream, rainbow cake, st patricks day cake

you’ll also love

st patricks day cake ideas by sugar and sparrowSt. Patrick’s Day Dessert Ideas
rainbow swirl cupcakes tutorialHow to Make Rainbow Swirl Cupcakes
green velvet cake recipe for st patricks day dessertGreen Velvet Cake with Rainbow Frosting

Join the List

Stay up to date & receive the latest posts in your inbox.

Reader Interactions

Leave a Reply Cancel reply

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

Recipe Rating




Next Post >

St. Patrick’s Day Dessert Ideas

Primary Sidebar

Welcome to Sugar & Sparrow

Welcome to Sugar & Sparrow

Helping you whip up pretty desserts with confidence and creativity. And hopefully sharing a few laughs with you along the way!

Learn More

Connect

let’s bake!

Get my very best recipes, baking tips, and decorating tutorials sent to your inbox

Featured Posts

strawberry lemon cake recipe

Strawberry Lemon Cake

buttercream terrazzo cake tutorial

Buttercream Terrazzo Cake Tutorial

mint chocolate chip ice cream cake recipe

Mint Chocolate Chip Ice Cream Cake

Search

Archives

Follow Along

@sugarandsparrowco

SALTED CARAMEL BUTTERCREAM ✨I could eat this salty SALTED CARAMEL BUTTERCREAM ✨I could eat this salty-sweet caramel frosting by the spoonful but it’s absolutely delicious on cakes, cupcakes, macarons, and more 🙌🏽 I use my homemade EASY salted caramel recipe here but you can use any salted caramel sauce that you love.⁣

✨Full recipe (including homemade salted caramel) + cake pairing suggestions are on my blog at https://sugarandsparrow.com/salted-caramel-buttercream-recipe/ 
⁣
SALTED CARAMEL BUTTERCREAM⁣
Yield: 2.5 Cups ⁣
⁣
INGREDIENTS⁣
1 Cup (226g) unsalted butter, room temperature⁣
3 1/2 Cups (420g) powdered sugar⁣
2 tsp vanilla extract⁣
1/2 Cup (120ml) salted caramel sauce, room temperature⁣
Pinch of salt⁣
⁣
INSTRUCTIONS:⁣
1. In a stand mixer fitted with the paddle attachment, whip the butter on high until it’s creamy and light in color, 5-6 minutes. ⁣
2. Turn the mixer to low and add the powdered sugar a few cups at a time, scraping down the bowl and paddle after each interval.⁣
3. With the mixer still on low, mix in the vanilla extract, salted caramel, and a pinch of salt. Continue mixing on low speed until fully combined. ⁣
⁣
#saltedcaramel #caramel #cakedecorating #frosting #buttercream
NO-CHURN BERRY CRISP ICE CREAM✨you don’t need any NO-CHURN BERRY CRISP ICE CREAM✨you don’t need any fancy equipment to whip up this delicious ice cream that tastes JUST like berry crisp a la mode! I layered my favorite 3-ingredient no-churn vanilla ice cream base with ribbons of homemade berry filling + buttery oat streusel in every bite. Even if you’ve never made ice cream from scratch before, I promise you can master this recipe!! 
 
🍦Full recipe linked in my bio or find it at https://sugarandsparrow.com/no-churn-berry-crisp-ice-cream/

#nochurnicecream #icecream #icecreamlover #berries #summerdessert
STRAWBERRY SHEET CAKE 🍓based on my favorite strawb STRAWBERRY SHEET CAKE 🍓based on my favorite strawberry layer cake recipe, this sheet cake version is so fun to decorate + such a crowd pleaser! I love using a combination of fresh and freeze-dried strawberries to create the most powerful authentic flavor ✨
 
🍓Full recipe (with strawberry buttercream) at https://sugarandsparrow.com/strawberry-sheet-cake-recipe/
⁣ 
STRAWBERRY SHEET CAKE⁣ 
Serves 24
⁣ 
INGREDIENTS⁣ 
1 Cup (12oz) fresh strawberries, pureed ⁣ 
3/4 Cup (180ml) whole milk, room temp⁣ 
2 1/2 Cups (265g) sifted cake flour⁣ 
2 tsp baking powder⁣ 
1/4 tsp baking soda⁣ 
1/2 tsp salt⁣ 
3/4 Cup (170g) unsalted butter, room temp⁣ 
1 2/3 Cups (350g) granulated sugar⁣ 
3 large eggs, room temp⁣ 
1/3 Cup (75g) sour cream, room temp⁣ 
2 tsp pure vanilla extract⁣ 
1-2 drops pink food coloring (optional)⁣ 
⁣ 
INSTRUCTIONS⁣ 
1. Simmer the strawberry puree in a saucepan over medium-low heat for 30-35 minutes, stirring occasionally. At this point the puree should have reduced from 1 Cup to 1/2 Cup (if you have more, keep cooking!). Refrigerate until room temp, then whisk together with the whole milk and set aside.⁣ 
2. Preheat the oven to 350ºF. Grease and line a 13×9 inch baking pan. 
3. In a medium bowl, whisk together the sifted cake flour, baking powder, baking soda, and salt. Set aside. ⁣ 
4. In the bowl of a stand mixer with the paddle attachment, whip the butter on high until creamy, 2 min. Add the sugar and beat with the butter until light and fluffy, 2 min. Turn the mixer to low and add the eggs one at a time. Add the vanilla and sour cream, then turn the mixer to high and beat for 1 minute.⁣ 
5. With the mixer on low, add all of the dry ingredients at once until just combined, then add the strawberry milk mixture and pink food coloring (if using) until just combined. Give the batter a few stirs by hand to make sure everything is incorporated without over-mixing. ⁣ 
6. Pour batter into the prepared cake pan and bake for 35-40 minutes. ⁣ Cool completely to room temperature before topping with strawberry buttercream (full recipe at the li
COOKIES & CREAM ICE CREAM CAKE 🤎 If you’re an Oreo COOKIES & CREAM ICE CREAM CAKE 🤎 If you’re an Oreo lover, this is your sign to make an ice cream cake this summer: no-churn cookies & cream ice cream set on an Oreo cookie crust, topped with hot fudge and whipped cream frosting. The perfect amount of Oreos in EVERY BITE! 

Full recipe link in my bio + at https://sugarandsparrow.com/cookies-and-cream-ice-cream-cake/ 

OREO CRUST
22 Oreo cookies
5 Tbsp melted butter

ICE CREAM LAYER
2 Cups (480ml) heavy whipping cream, cold
2 tsp pure vanilla extract
14 Oz sweetened condensed milk
15 Oreo cookies, roughly chopped

TOPPINGS
12.8 Oz jar of hot fudge
Whipped cream frosting (see full recipe link)
4 Oreo cookies, chopped

INSTRUCTIONS
1. Mix together the Oreo crust ingredients and pack tightly into the bottom of a 9-inch springform pan. Freeze while you make the ice cream.
2. In a chilled bowl, whip the heavy cream and vanilla to stiff peaks. Fold in the sweetened condensed milk until uniform, then fold in the chopped Oreos. Pile the ice cream on top of the Oreo crust, smooth it down, cover and freeze overnight.
3. When the ice cream layer is set, top with the hot fudge, whipped cream frosting, and more chopped Oreos. Store in the freezer until ready to serve! 

#oreocake #icecreamcake #nochurnicecream #birthdaycake #cookiesandcream
EASY OREO ICEBOX CAKE (recipe below) 🤎 You only ne EASY OREO ICEBOX CAKE (recipe below) 🤎 You only need 4 ingredients for this recipe and it sets into the perfect summer dessert in the refrigerator overnight! It’s 7 alternating layers of Oreos and homemade whipped cream + every bite tastes like a perfect milk-dunked Oreo in the very best way ✨
 
Full recipe at https://sugarandsparrow.com/oreo-icebox-cake/ 
 
INGREDIENTS: 
2 Cups (480ml) cold heavy whipping cream 
1/4 Cup (30g) powdered sugar 
1 tsp pure vanilla extract 
36 Oreo cookies 
 
INSTRUCTIONS: 
1. Add the heavy whipping cream, powdered sugar, and vanilla extract into a chilled mixing bowl. Using the whisk attachment on your stand mixer or a hand mixer, beat the ingredients until stiff peaks form. 
2. Line a loaf pan with plastic wrap, then add a thin layer of the whipped cream onto the bottom of the pan. Add a layer of Oreo cookies on top (cut some of the Oreos to fit as needed). 
3. Add 1/3 of the remaining whipped cream on top of the Oreo layer, followed by a second layer of Oreos. Repeat until you have seven total layers, ending with whipped cream. 
4. Cover the cake and refrigerate overnight, then enjoy!  
 
#oreocake #vintagecake #nobakecake #oreo #nobake

Footer

On the Blog

  • Cake Basics
  • Recipes
  • Tutorials

Info

  • About
  • Privacy Policy & Disclosure

stay in the know

Copyright © 2026 · Theme by Sugar & Sparrow