This bright and colorful gift cake is a showstopper made for celebrations. With its vibrant rainbow layers, creamy vanilla buttercream, and cheerful sprinkle coating, it’s the kind of cake that instantly brings a smile. The recipe uses a simple vanilla cake base, divided and dyed into six colors, then stacked into a stunning rainbow. It’s easier than it looks, and the result is a truly memorable homemade gift.
Ingredients
- 3 cups (360g) all-purpose flour
- 2 ½ teaspoons baking powder
- ½ teaspoon salt
- 1 cup (226g) unsalted butter, softened
- 2 cups (400g) granulated sugar
- 4 large eggs, room temperature
- 1 tablespoon vanilla extract
- 1 cup (240ml) whole milk, room temperature
- Gel food coloring (red, orange, yellow, green, blue, purple)
- For the buttercream:
- 2 cups (452g) unsalted butter, softened
- 4 cups (480g) powdered sugar
- 2 tablespoons heavy cream (or milk)
- 1 teaspoon vanilla extract
- Pinch of salt
- For decoration: rainbow sprinkles (about 1 cup / 150g)
Instructions
- Preheat oven to 350°F (175°C). Grease and flour three 8-inch round cake pans, and line the bottoms with parchment paper.
- In a medium bowl, whisk together flour, baking powder, and salt. Set aside.
- In a large bowl, beat the softened butter and sugar together until light and fluffy, about 3-4 minutes.
- Add eggs one at a time, beating well after each addition. Beat in vanilla extract.
- Gradually add the dry ingredients to the butter mixture, alternating with the milk, beginning and ending with the dry ingredients. Mix until just combined, being careful not to overmix.
- Divide the batter evenly into six bowls (about 1 cup / 240ml each). Add gel food coloring to each bowl to create red, orange, yellow, green, blue, and purple batters. Stir until the color is uniform.
- Pour each colored batter into its own prepared pan. If you only have three pans, bake in batches: bake three colors at a time, then clean and reuse the pans for the remaining three.
- Bake for 20-25 minutes, or until a toothpick inserted into the center comes out clean. Let cool in the pans for 10 minutes, then turn out onto wire racks to cool completely.
- While the cakes cool, make the buttercream: Beat the softened butter until smooth. Gradually add powdered sugar, one cup at a time, beating well. Add heavy cream, vanilla, and salt. Beat on medium-high for 3-4 minutes until light and fluffy.
- Once the cakes are completely cool, level the tops with a serrated knife if needed.
- Place the red layer on a cake board or serving plate. Spread a layer of buttercream on top. Repeat with orange, yellow, green, blue, and finally purple on top.
- Apply a thin crumb coat: spread a thin layer of buttercream over the entire cake to seal in crumbs. Refrigerate for 20-30 minutes to set.
- After the crumb coat is set, apply a final, thicker layer of buttercream, smoothing the sides and top with an offset spatula.
- While the buttercream is still soft, press rainbow sprinkles onto the sides of the cake. You can also sprinkle some on top.
- Refrigerate the cake for at least 30 minutes before serving to allow the buttercream to firm up.
Tips
- Use gel food coloring: Liquid food coloring will thin the batter and produce less vibrant colors. Gel colors are concentrated and give bright, true hues without altering the batter's consistency.
- Weigh your batter: For even layers, use a kitchen scale to divide the batter equally among the bowls. If you don't have a scale, use a measuring cup and ensure each bowl gets the same amount.
- Chill the cake before frosting: A chilled cake is much easier to frost. After stacking, refrigerate the assembled cake for 15-20 minutes before applying the crumb coat. This helps prevent crumbs from mixing into the final buttercream.
- Room temperature ingredients: Make sure your butter, eggs, and milk are at room temperature before starting. This ensures a smooth, evenly mixed batter and a tender crumb.
Serving Suggestions
Serve this cake at birthday parties, baby showers, or any festive gathering. It’s perfect as a centerpiece. Slice with a sharp knife, wiping it clean between cuts for neat slices. Pair with a glass of cold milk, coffee, or a scoop of vanilla ice cream.
Variations
- Different colors: Swap the rainbow colors for a monochrome theme (e.g., shades of pink) or your recipient’s favorite colors.
- Chocolate layers: Replace ⅓ cup of flour with ⅓ cup of unsweetened cocoa powder for a chocolate version, then color as desired.
- Lemon or almond flavor: Substitute the vanilla extract with 1 teaspoon of lemon or almond extract for a different flavor profile.
- Filling: Add a thin layer of jam, curd, or chocolate ganache between the cake layers for extra flavor.
Storage and Reheating
Store the cake in an airtight container in the refrigerator for up to 5 days. Because of the buttercream, it should always be refrigerated when not being served. Let it sit at room temperature for 20-30 minutes before serving to soften the buttercream. The cake can also be frozen, unfrosted, for up to 3 months. Wrap each cooled layer tightly in plastic wrap and then foil. Thaw overnight in the refrigerator before frosting.
Frequently Asked Questions
Can I use a boxed cake mix?
Yes, you can use a white or vanilla boxed cake mix. Prepare the batter according to package directions, then divide and color it as instructed. Bake according to the package's time and temperature, but check for doneness earlier as colored layers may bake faster.
How many people does this cake serve?
This 6-layer 8-inch cake serves about 12-16 people, depending on slice size. For a larger crowd, you can make 9-inch layers or double the recipe.
Why did my cake layers come out lopsided?
Lopsided layers usually happen if the batter is unevenly distributed or the oven has hot spots. Use a scale for equal batter, and rotate the pans halfway through baking. Also, ensure your oven is properly calibrated with an oven thermometer.
Can I make this cake in advance?
Absolutely. You can bake the layers up to 2 days ahead, wrap them tightly in plastic wrap, and store them in the refrigerator. Frost the cake the day you plan to serve it for the freshest appearance.
How do I get the sprinkles to stick to the sides?
After applying the final layer of buttercream, immediately press handfuls of sprinkles onto the sides while the buttercream is still soft. Gently pat them in. If the buttercream has set, you can warm it slightly with a hairdryer on low, but it’s easier to work right after frosting.
What if I don't have six cake pans?
You can bake in batches. After the first three layers cool, clean the pans, re-grease, and bake the remaining three. Or, use a single 9x13-inch pan and cut out circles with a cookie cutter, but you'll have scraps.