
These enchanting cheesecake bars are designed for those days when you want a dessert that stuns both in flavor and visual magic. The oat biscuit base is buttery and comforting, topped with creamy butterfly pea-stained filling, and bright pink lemon swirls that shift color as you slice. Every bar feels like a slice of the galaxy—perfect for impressing guests or enjoying a bit of whimsy at home.
I first served these at my niece’s birthday party and the color-changing swirls had everyone talking. Now when anyone sees that magical blue and pink marbling at our gatherings they know something special is coming.
Ingredients
- Rolled oats: give the base a nutty flavor and chewy heartiness Use old-fashioned oats for best texture
- All-purpose flour: helps structure the base Look for unbleached high-quality flour for a tender bite
- Unsalted butter: adds rich flavor and helps bind the base Choose European-style butter for even more depth
- Light brown sugar: brings caramel notes to the crust Use soft fresh brown sugar for the best results
- Fine sea salt: sharpens the sweetness and balances flavors Opt for pure sea salt over table salt
- Cream cheese: gives the filling its creamy body Make sure it is fully softened for a silky batter
- Granulated sugar: sweetens and lightens the cheesecake filling Use superfine for a smoother consistency
- Large eggs: create structure and ensure a classic cheesecake texture Choose fresh free-range eggs if you can
- Sour cream: adds tanginess and keeps the filling rich and velvety Pick full-fat for ultimate creaminess
- Lemon juice: brightens the flavor and works magic with butterfly pea for color change Always use freshly squeezed lemons for the best zing
- Vanilla extract: enhances overall flavor Pure vanilla transforms the aroma of your bars
- Butterfly pea flower powder: gives the dramatic indigo color Use a vibrant fresh powder or reduce a strong tea to intensify the hue
- Cornstarch: stabilizes the filling and swirl Choose fresh dry cornstarch for lump-free mixing
- Pink pitaya powder: gives the swirl its magical hue Substitute with freeze-dried raspberry powder for a subtle tartness
- Fresh lemon juice in the swirl: brings flavor and color contrast Only fresh lemons deliver the color-changing magic
Step-by-Step Instructions
- Prepare the Baking Pan:
- Line a nine-inch square baking pan with parchment paper leaving an overhang on all sides This helps lift the bars out easily once chilled
- Make the Oat Biscuit Base:
- Mix rolled oats all-purpose flour light brown sugar and fine sea salt in a bowl Add melted butter and stir until every oat is coated The mixture should look damp but crumbly Press it tightly and evenly into the bottom of the prepared pan Use the base of a glass or measuring cup to get an even layer Bake at 340 Fahrenheit for about twelve minutes until lightly golden Set aside to cool
- Beat the Cheesecake Filling:
- In a large bowl beat softened cream cheese and granulated sugar together until super smooth No lumps should remain Add eggs one by one beating well after each This helps keep everything airy and smooth Mix in sour cream fresh lemon juice vanilla extract butterfly pea flower powder and cornstarch Continue beating until the filling takes on a deep indigo blue and everything is fully blended
- Assemble the Cheesecake Layer:
- Pour the cheesecake mixture over the cooled oat base Use a spatula to spread it gently into an even layer Tap the pan on the counter a couple of times to release any air bubbles
- Make the Pink Lemon Swirl:
- In a small saucepan whisk fresh lemon juice granulated sugar pink pitaya powder and cornstarch Cook gently over medium-low heat stirring constantly Until the mixture thickens and turns intense pink Usually two or three minutes Cool slightly before swirling
- Create the Galaxy Swirl:
- Drop spoonfuls of the pink lemon mixture evenly across the cheesecake layer Using a skewer or a thin knife gently swirl to create marbled galaxy designs Try not to overmix so you keep clear streaks
- Bake the Bars:
- Place the pan in the oven and bake for twenty-five to twenty-eight minutes The cheesecake edges should look set but the center will jiggle slightly Remove from the oven and let cool entirely at room temperature
- Chill for Best Texture and Color:
- Refrigerate the cooled bars for at least four hours or overnight This is essential for clean cuts and for the magical color transitions to really pop
- Cut and Serve:
- Use the parchment overhang to lift the bars from the pan Slice into ten squares or rectangles for serving Serve well-chilled to showcase the galaxy effect

I have always loved watching the pink swirl streaks deepen in color after chilling in the fridge They remind me of painting with watercolors as a kid and my sister always asks for extra lemon swirl every time I make these
How to Store These Cheesecake Bars
Keep the bars in an airtight container in the fridge for up to five days For best texture separate layers with parchment Cut bars hold up well when frozen Just wrap each in cling film and pop in an airtight bag then thaw in the fridge overnight before serving The colors actually hold up beautifully after a freeze
Ingredient Swaps and Tips
For gluten-free guests you can replace regular oats and flour with certified gluten-free versions If you cannot find butterfly pea flower powder steep dried butterfly pea flowers in hot water then reduce the liquid to two tablespoons for the same effect Raspberry powder can stand in for pitaya if pink dragon fruit is tricky to source Avoid skipping the cornstarch which keeps your swirls distinct
Serving Suggestions
These bars shine on their own but you can top with a dollop of whipped cream or sprinkle them with edible glitter for an even more celestial look Fresh berries add a pop of freshness at the table They are perfect on dessert platters for showers brunches or any gathering where you want color and conversation

Cultural Inspiration for the Magic Color
Butterfly pea flower is beloved across Southeast Asia for its vivid blue color and antioxidant properties In Thailand and Malaysia it is often used in teas or rice sweets The magic happens when the blue pigment hits something acidic such as lemon juice which is when you see that indigo swirl turn almost magenta right before your eyes It is a true celebration of nature’s chemistry at work
Recipe FAQs
- → What creates the indigo color in these bars?
The indigo hue comes from butterfly pea flower powder, which naturally imparts a vibrant blue shade to the cheesecake mixture.
- → How is the pink swirl achieved?
The pink swirl is made by heating lemon juice, sugar, and pitaya (dragon fruit) or raspberry powder with cornstarch, then swirling into the cheesecake before baking.
- → Do the colors change after baking?
Yes, the acidity in the pink lemon swirl reacts with the indigo cheesecake, creating dynamic color shifts from blue to magenta and pink.
- → Can I make this dessert gluten-free?
Use certified gluten-free oats and a gluten-free flour blend to adapt the crust for gluten-free needs.
- → How should the bars be served for best texture?
Allow the bars to chill for at least four hours or overnight before slicing and serving to enjoy their best texture and color.
- → What garnishes pair well?
Garnish with edible flowers, fresh berries, or a touch of shimmer dust for added visual appeal.