A rainbow cake is a layer cake made with colorful cake batter and multi-colored frosting. The batter is typically made from six to eight different colors of food coloring, but the number can vary. The cake is typically decorated with sprinkles and/or decorations made from the same colors used in the cake batter.