Go Back
Rainbow cupcakes with swirled rainbow buttercream frosting on a white cake stand

Rainbow Cupcakes

Soft vanilla cupcakes hiding six rainbow layers inside, topped with tall rainbow swirl buttercream and sprinkles. A 75-minute, halal-friendly party showstopper.
Prep Time 25 minutes
Cook Time 20 minutes
Rest Time 30 minutes
Total Time 1 hour 15 minutes
Servings: 12 cupcakes
Calories: 320

Ingredients
  

Cupcakes
  • 1.5 cups all-purpose flour spooned and leveled
  • 1.5 tsp baking powder
  • 0.25 tsp fine salt
  • 0.5 cup unsalted butter, softened
  • 0.75 cup granulated sugar
  • 2 large eggs, room temperature
  • 2 tsp alcohol-free vanilla extract keeps it halal
  • 0.5 cup whole milk, room temperature
  • gel food coloring in 6 colors red, orange, yellow, green, blue, purple
Rainbow Buttercream
  • 1 cup unsalted butter, softened
  • 3.5 cups powdered sugar, sifted
  • 2 tbsp heavy cream
  • 1 tsp alcohol-free vanilla extract
  • 1 pinch fine salt
  • 0.25 cup halal-certified rainbow sprinkles for decorating

Method
 

  1. Heat the oven to 350°F and line a 12-cup muffin tin with paper liners.
  2. Whisk the flour, baking powder, and salt in a medium bowl.
  3. Beat the butter and sugar 2 to 3 minutes until pale and fluffy. Add the eggs one at a time, then the vanilla.
  4. Add the flour mixture alternately with the milk, beginning and ending with flour. Mix just until combined.
  5. Divide the batter among 6 bowls and tint each a rainbow color. Layer one teaspoon of each color into every liner without stirring.
  6. Bake 18 to 20 minutes until a toothpick comes out clean. Cool 5 minutes in the pan, then fully on a rack, about 30 minutes.
  7. Beat the butter, then add powdered sugar gradually with the cream, vanilla, and salt. Divide into 6 bowls, tint each, stripe onto plastic wrap, roll into a log, and load into a piping bag.
  8. Pipe tall swirls onto the cooled cupcakes and shower with sprinkles.

Notes

  • Refrigerate frosted cupcakes up to 3 days; serve at room temperature.
  • Freeze unfrosted cupcakes up to 2 months.
  • Always use gel food coloring for vivid layers.