Go Back
Show-Stopping Rainbow Layer Cake

Show-Stopping Rainbow Layer Cake

Can I use gel food coloring instead of liquid? Yes, gel food coloring works well and provides vibrant colors without affecting the batter's consistency.
Prep Time 30 minutes
Cook Time 18 minutes
Total Time 1 minute
Servings: 12 servings
Calories: 370

Ingredients
  

  • 3 cups all-purpose flour
  • 2 ½ teaspoons baking powder
  • ½ teaspoon salt
  • 1 cup unsalted butter at room temperature
  • 2 cups granulated sugar
  • 4 large eggs at room temperature
  • 2 teaspoons vanilla extract
  • 1 ½ cups whole milk at room temperature
  • Food coloring red, orange, yellow, green, blue, purple

Method
 

  1. Preheat oven to 350°F (175°C). Grease and line six 8-inch cake pans with parchment paper. If you don't have six pans, bake in batches.
  2. In a medium bowl, whisk together flour, baking powder, and salt. Set aside. In a large mixing bowl, beat butter and sugar on medium-high until fluffy (3-5 minutes). Add eggs one at a time, beating well after each. Stir in vanilla extract. On low speed, add flour mixture in three parts, alternating with milk, starting and ending with flour. Mix until just combined.
  3. Divide batter evenly into six bowls. Add food coloring to each bowl, creating red, orange, yellow, green, blue, and purple batters. Mix until colors are vibrant.
  4. Pour each colored batter into prepared pans. Bake for 15-18 minutes, or until a toothpick inserted into the center comes out clean. Cool cakes in pans for 10 minutes, then transfer to wire racks to cool completely.
  5. Beat cream cheese and butter until smooth. Gradually add powdered sugar, beating on low speed until combined. Add vanilla extract and mix until fluffy.
  6. Place the purple layer on a cake board or plate. Spread a thin layer of frosting. Repeat with blue, green, yellow, orange, and red layers, adding frosting between each. Apply a thin crumb coat over the entire cake and refrigerate for 20 minutes. Apply the final coat of frosting. Decorate with sprinkles if desired.

Notes

Storage & Meal Prep
Refrigerator: Store leftovers in an airtight container for up to 3-4 days.
Freezer: Freeze in a sealed container for up to 2-3 months. Thaw overnight in the fridge.
Reheat: Warm in a skillet over medium heat, in the microwave, or in a 350°F oven until heated through.