Heat the oven to 350°F (175°C). Butter two or three 8 inch round pans, line the bottoms with baking paper, butter the paper, and dust with flour.
Whisk the flour, baking powder, and salt in a bowl.
Beat the butter and sugar for 3 to 4 minutes, until pale, thick, and fluffy.
Add the eggs one at a time, beating well after each one. Stir in the vanilla.
Add the flour mix in three parts and the milk in two parts, taking turns, starting and ending with flour. Mix on low just until smooth.
Split the batter evenly among six small bowls, about 1 1/2 cups in each. Weigh the bowls for layers that match.
Stir one gel color into each bowl: red, orange, yellow, green, blue, and purple, a few drops at a time, until the color looks even.
Pour one colored batter into each ready pan, smooth the tops, and cover the rest of the bowls with a clean towel.
Bake 14 to 16 minutes, until the top springs back and a toothpick in the center comes out clean.
Rest the pans 10 minutes, turn the layers out, peel off the paper, and cool fully. Butter and line the pans fresh and bake the next round until all six layers are done.
Beat the frosting butter until pale and smooth. Add the powdered sugar one cup at a time with the milk, then the vanilla and salt. Beat 2 to 3 minutes, until light and fluffy.
Stack the layers cold in this order: purple, blue, green, yellow, orange, red, with a thin layer of frosting between each one. Spread a thin coat over the whole cake, chill 20 minutes, then finish with the rest of the frosting in soft swirls. Add sprinkles on top if you like.