01 -
Preheat the oven to 350°F. Grease and line two 9 inch round cake pans with parchment paper, and then grease the parchment paper and dust with cocoa powder.
02 -
Sift the dry ingredients for the cake layers (flour, cocoa, baking powder, baking soda, and salt) into a medium bowl.
03 -
In the bowl of stand mixer (or in a large mixing bowl if using a hand mixer), beat the butter for 3 to 5 minutes until soft and light, scraping the bowl intermittently. Add the sugar, and beat the butter and sugar together until light and fluffy, another 1 to 2 minutes.
04 -
Add the eggs, one at a time, and beat for one minute after each one. Scrape the bowl, add the vanilla, and beat for an additional minute.
05 -
Measure out the buttermilk into a 2 cup measuring cup, and then add the vinegar and purple food coloring to the measuring cup.
06 -
Add the dry ingredients in three parts and alternate with the buttermilk mixture (in two parts), starting and ending with the dry ingredients. Mix only as long as needed to incorporate the addition, and scrape down the bowl as needed.
07 -
Pour the batter into the prepared pans, even the batter out in the pan, and give it one or two gentle thwacks onto the kitchen counter to remove any air bubbles. Bake on a middle rack of the oven for about 25 minutes until a toothpick or knife inserted into the center comes out clean.
08 -
Cool the cake layers in the pans for about 10 minutes and then turn out onto cooling racks. Cool completely.
09 -
Melt the white chocolate in a double boiler, being careful not to overheat it. Let cool. In a mixing bowl, cream the cream cheese and butter together until soft.
10 -
Add the vanilla and cooled white chocolate to the cream cheese mixture and blend. Add food coloring, if using, to achieve desired color.