Preheat your oven to 350°F. Prepare three 9-inch cake pans by coating them with nonstick baking spray and lining the bottoms with parchment paper for easy release.
In a medium bowl, combine the cake flour, baking powder, baking soda, and salt, whisking until evenly blended.
Using a stand mixer fitted with the paddle attachment or a large mixing bowl and a hand mixer, cream the butter and sugar together on medium-low speed until the mixture turns pale and fluffy, about 3 minutes. Incorporate the eggs one at a time, ensuring each is fully blended before adding the next. Pause to scrape down the sides of the bowl, then mix in the vanilla and almond extracts until evenly combined.
With the mixer on low, gradually add a third of the flour mixture to the creamed butter mixture, followed by half of the milk. Repeat the process with another third of the flour mixture and the remaining milk, finishing with the last portion of flour. If desired, mix in food coloring until the batter reaches your preferred shade. Gently fold in the pistachios to distribute them evenly. Divide the batter evenly between the prepared cake pans.
Bake for 25 minutes, or until the tops turn golden brown and the edges begin to pull away from the sides of the pans. Allow the cakes to cool in their pans for about 15 minutes, then carefully transfer them to a wire rack to cool completely. Peel off the parchment paper before assembling or serving.