Zimt

Colorful Rainbow Cookies: Easy Step-by-Step Recipe

· 6 min read · Cookies and Bars

In this article
  1. Ingredients
  2. Instructions
  3. Tips
  4. Serving Suggestions
  5. Variations
  6. Storage and Reheating
  7. Frequently Asked Questions

These colorful rainbow cookies are soft, buttery sugar cookies with a bright, cheerful swirl of red, orange, yellow, green, blue, and purple. The dough is divided, colored, and layered into a log, then sliced and baked — no cookie cutters or royal icing needed. The result is a festive, bakery-style cookie that holds its color well and tastes like a classic vanilla sugar cookie, perfect for parties, holidays, or a fun baking project with kids.

Ingredients

  • 2 ½ cups (315 g) all-purpose flour
  • ½ teaspoon baking powder
  • ¼ teaspoon salt
  • 1 cup (226 g) unsalted butter, softened
  • 1 cup (200 g) granulated sugar
  • 1 large egg
  • 1 large egg yolk
  • 2 teaspoons vanilla extract
  • Gel food coloring: red, orange, yellow, green, blue, purple (or your choice of colors)

Instructions

  1. In a medium bowl, whisk together the flour, baking powder, and salt. Set aside.
  2. In a large bowl, beat the softened butter and sugar with an electric mixer on medium speed until light and fluffy, about 2–3 minutes.
  3. Add the egg, egg yolk, and vanilla extract. Beat until fully combined, scraping down the sides as needed.
  4. Gradually add the dry ingredients to the wet mixture, mixing on low speed until just combined. Do not overmix — the dough should be soft but not sticky.
  5. Divide the dough into 6 equal portions (about 110 g each) using a kitchen scale or by eye. Place each portion in a separate small bowl.
  6. Add a few drops of gel food coloring to each portion: one red, one orange, one yellow, one green, one blue, one purple. Use a spatula or your hands (wearing gloves) to knead the color into each dough portion until the color is uniform. Add more gel color if needed to reach the desired vibrancy.
  7. Shape each colored dough portion into a log about 8 inches (20 cm) long and 1 inch (2.5 cm) in diameter. Wrap each log in plastic wrap and refrigerate for 30 minutes. This makes them easier to stack.
  8. After chilling, layer the logs in this order: red, orange, yellow, green, blue, purple. Place them side by side on a piece of plastic wrap, pressing them together gently to form a single rectangular block. Wrap tightly and refrigerate for at least 2 hours, or up to overnight, until firm.
  9. Preheat your oven to 350°F (175°C). Line two baking sheets with parchment paper.
  10. Unwrap the dough block and slice it into ¼-inch (6 mm) thick cookies using a sharp knife. If the dough cracks, press it back together gently with your fingers.
  11. Place the cookies on the prepared baking sheets, about 1 inch apart. Bake for 10–12 minutes, until the edges are just barely golden. The centers will look slightly underdone — that’s fine.
  12. Let the cookies cool on the baking sheet for 5 minutes, then transfer to a wire rack to cool completely.

Tips

  • Use gel food coloring, not liquid: Liquid colors add too much moisture and make the dough sticky. Gel colors are concentrated and give vivid hues without altering the dough’s texture.
  • Chill the dough thoroughly: The layered log must be very firm before slicing, or the colors will smear and the cookies will lose their distinct stripes. At least 2 hours of chilling is essential.
  • Don’t overbake: These cookies are meant to be soft. Remove them when the edges are just set — they will continue to firm up as they cool.
  • If the dough cracks while slicing: Let it sit at room temperature for 5 minutes to soften slightly, then press the cracked pieces back together before baking.

Serving Suggestions

Serve these rainbow cookies at birthday parties, baby showers, or holiday cookie exchanges. They pair well with milk, coffee, or a glass of cold lemonade. For a festive platter, arrange them in a circle or alternate colors on a serving tray. You can also sandwich two cookies with a thin layer of vanilla buttercream or white chocolate ganache for an extra treat.

Variations

  • Citrus twist: Replace the vanilla extract with 1 teaspoon of lemon or orange zest and 1 teaspoon of lemon or orange extract.
  • Pastel colors: Use pastel gel colors (like baby pink, mint, and lavender) for a softer, spring-themed look.
  • Chocolate dip: After baking and cooling, dip half of each cookie in melted white or dark chocolate and let set.
  • Gluten-free: Substitute the all-purpose flour with a 1:1 gluten-free baking flour blend. The texture will be slightly more crumbly, but the cookies will still be delicious.

Storage and Reheating

Store the baked cookies in an airtight container at room temperature for up to 5 days. To keep them soft, add a slice of bread to the container — it absorbs excess moisture and keeps the cookies chewy. You can also freeze the unbaked dough log (wrapped tightly in plastic wrap and then foil) for up to 3 months. When ready to bake, slice the frozen log with a sharp knife and bake as directed, adding 1–2 minutes to the baking time. Baked cookies can be frozen in a single layer in an airtight container for up to 2 months; thaw at room temperature for 30 minutes before serving. To refresh slightly, warm cookies in a 300°F (150°C) oven for 3–4 minutes — but they are best enjoyed at room temperature.

Frequently Asked Questions

Can I use natural food coloring?

Yes, but natural colors (like beet powder or turmeric) are less vibrant and may alter the flavor slightly. They also tend to fade more during baking. If using natural options, add more than you think is needed and expect muted tones.

Why did my colors bleed into each other?

Bleeding usually happens if the dough is too soft or the log isn’t chilled long enough. Make sure the dough is well-chilled before layering and slicing. Also, avoid overworking the dough when mixing in the colors, as that can create a marbled effect rather than clean stripes.

Can I make these cookies without a kitchen scale?

Yes, you can divide the dough into 6 equal portions by eye. It doesn’t have to be perfect — the cookies will still look beautiful. A scale just makes the layers more even.

What if I don’t have all six colors?

You can use any combination of colors — 4, 5, or even 8. Just adjust the number of dough portions accordingly. The key is to keep the total dough weight the same and divide it equally.

Can I make the dough ahead of time?

Absolutely. You can prepare the colored dough and layer the log up to 3 days in advance. Keep it wrapped tightly in plastic wrap in the refrigerator. Let it sit at room temperature for 5–10 minutes before slicing if it’s too hard.

Why are my cookies spreading too much?

This usually happens if the butter is too soft or the dough is overmixed. Make sure your butter is softened but not melted, and chill the sliced cookies on the baking sheet for 10 minutes before baking if you notice spreading.