Why it works: Vanilla and coconut match in chemistry and in kitchens. They rank in the top 1% of all ingredient pairs, and cooks put them together in 2,294 recipes. Both carry ethyl caproate, which smells fruity, apple peel. The science ↓
Rainbow Cupcakes
Ingredients
Directions
Make the batter
Combine all ingredients until incorporated (about 30 seconds).
Scrape sides of bowl and then beat on medium-high speed for 3 minutes.
Divide batter according to how many colors you are using; I used 5 colors and it worked out to a little over 1 cup for each color.
Use food coloring to color batter to desired intensity; Wilton brand gel colors have the brightest colors and wont thin your batter.
To get a layered stripe, put a spoonful of each color in the cupcake one at a time.
Bake them according to the package directions, until a toothpick comes out dry.
Make the frosting
Add butter and powdered sugar and beat until light and fluffy.
Add the coconut extract, vanilla extract, and salt; mix until combined.
Gradually add milk (you may not need all of it) and beat for 2-3 minutes until fluffy.
Frost and decorate
Frost cooled cupcakes; add rainbow colored sprinkles if desired.
For Double Rainbow cupcakes: Reserve about 1/3 cup of white frosting and dye the rest blue.
Frost cupcakes.
Place white frosting in a resealable bag and pipe clouds on top of the blue frosting.
Cut an Airhead Extremes in half and place in the clouds.
Nutrition, whole recipe (rough)
Counts 9 of 10 ingredients. The other 1 aren't in our nutrition table and add nothing above, so the real totals are higher.
What these numbers assume: 9 portions
| Ingredient | Portion assumed | kcal |
|---|---|---|
| Coconut | 1/2 cup shredded (40g) | 283 |
| Milk | 1 cup (244ml) whole | 149 |
| Olive Oil | 1 tbsp (14g) | 119 |
| Butter | 1 tbsp (14g) | 102 |
| Yogurt | 170g plain Greek | 100 |
| Egg | 1 large egg (50g) | 78 |
| Sugar | 1 tbsp (12.5g) granulated | 49 |
| Vanilla | 1 tsp extract (4ml) | 12 |
| Salt | 1 tsp (6g) | 0 |
| Cake | not in our table | 0 |
One typical portion per ingredient; the recipe's quantities are not counted. A rough guide only, not for medical or dietary planning.
Steps grouped into stages for easier reading; the method is the source's own.
Explore the science
The flavor team
The pairs that carry this dish. Each one is judged two ways: how much their aromas overlap, and how often cooks already put them together.
-
Vanilla + coconuttop 1% of all pairsSmell alikestrongCooked together2,294 recipes
Shared aroma: ethyl caproate (fruity, apple peel).
-
Milk + vanillatop 5% of all pairsSmell alikemoderateCooked together19,187 recipes
Shared aroma: ethyl caproate (fruity, apple peel).
-
Milk + buttertop 7% of all pairsSmell alikemoderateCooked together81,283 recipes
Shared aroma: (z)-4-heptenal (biscuit, cream).
-
Cream + buttertop 8% of all pairsSmell alikemoderateCooked together41,516 recipes
Shared aroma: delta-dodecalactone (sweet, creamy).
-
Sugar + vanillatop 8% of all pairsSmell alikelowCooked together35,032 recipes
Shared aroma: beta-damascenone (apple, rose).
Sugar and vanilla barely smell alike, yet cooks put them together in 35,032 recipes: they work on texture and structure more than aroma.
Ranks compare each pair with 20,000 random ingredient pairs on CompKitchen. How we score pairs
What each ingredient does
- White cake mix
- Forms the sponge structure that carries the colored batter layers.
- Eggs
- Bind the batter and help set the crumb as it bakes.
- Sour cream
- Adds moisture and tenderness to the crumb.
- Butter
- Adds richness and creates a light, fluffy frosting when beaten with sugar.
- Powdered sugar
- Provides sweetness and bulk, giving the frosting its body.
The step that matters
Gradually add milk to the frosting. Powdered sugar frosting thickens quickly, so adding milk a little at a time lets you reach a smooth, spreadable texture without making it runny.
Swap the coconut
How well each one fits the dish's main ingredients (egg, cream, milk, butter, sugar, vanilla):
- Strawberryfits about as well
- Coconutthe original
- Figfits about as well
- Peachfits about as well
Fit is the average pairing score against egg, cream, milk, butter, sugar, vanilla. Candidates are from the same food group and used in at least 100 recipes.
“What each ingredient does” and “The step that matters” were written by Claude from this recipe’s own method and reviewed in samples by CompKitchen.
You might also like
The free Flavor Lab newsletter: one surprising pairing a week and the molecular reason it works, in 60 seconds. No spam, unsubscribe anytime.
Prefer an account? Create a free account to save pairings and unlock the full chemistry.
Vanilla Ice Cream108 recipes
White Cake431 recipes
Pound Cake373 recipes
Orange Bundt Cake349 recipes