Preheat your oven to 350°F (175°C) and prepare two 9-inch round cake pans by lining with parchment paper and greasing.
In a large mixing bowl, cream together butter, granulated sugar, and brown sugar until light and fluffy.
Add lemon zest, lemon extract, vanilla extract, and eggs one at a time, mixing well after each addition.
In another bowl, whisk together cake flour, baking powder, baking soda, and salt.
Gradually add the dry ingredients to the wet mixture, alternating with the milk, sour cream, and lemon juice until just combined.
Coat the raspberries in flour to prevent them from sinking, then gently fold them into the batter.
Divide the batter evenly between the prepared pans and bake for 28-30 minutes, or until a toothpick comes out clean.
Cool the cakes in the pans for 10 minutes, then transfer to wire racks to cool completely.
For the frosting, beat cream cheese and butter until smooth, then gradually add confectioners' sugar, lemon zest, lemon juice, and optional lemon extract until fluffy.
Once the cakes are cooled, frost the top of one layer with frosting, add raspberry preserves, then place the second layer on top and frost the entire cake.
Decorate with fresh raspberries and lemon slices before serving.
Send me this recipe!
Just enter your email below and get it sent straight to your inbox!
Notes
Store leftovers in an airtight container in the refrigerator for up to a week.