Rainbow Sugar Cookies: Soft, Colorful Cookies at Home

Updated November 3, 2026

Total time
2 hr 19 min
prep 35 min · cook 24 min
Serves
24
portions as written

Jump to recipe

Rainbow Sugar Cookies: Soft, Colorful Cookies at Home

Rainbow sugar cookies are buttery, vanilla-scented slice-and-bake cookies made by tinting sugar-cookie dough in six colors and joining the colors into one striped log. Chilling the log makes it easy to slice neat rounds, while the simple dough bakes into tender cookies that are cheerful enough for celebrations and easy to serve by the cookie.

Ingredients

  • 2½ cups (312 g) all-purpose flour, spooned into the measuring cup and leveled
  • ½ teaspoon (2 g) baking powder
  • ¼ teaspoon (1.5 g) fine salt
  • 1 cup (227 g) unsalted butter, softened but still cool
  • ¾ cup (150 g) granulated sugar
  • 1 large egg (about 50 g without the shell), at room temperature
  • 2 teaspoons (10 ml) vanilla extract
  • Gel food coloring: red, orange, yellow, green, blue, and purple, about ⅛ teaspoon (0.6 ml) of each to start, plus more as needed
  • 2 tablespoons (25 g) coarse sparkling sugar or rainbow sprinkles, optional

Instructions

  1. Mix the dry ingredients. Whisk the flour, baking powder, and salt together in a medium bowl until evenly combined. Set it aside. This quick step distributes the baking powder so the cookies rise evenly rather than developing isolated puffy spots.
  2. Cream the butter and sugar. In a large bowl, beat the softened butter and granulated sugar with a hand mixer on medium speed for about 2 minutes, until creamy and a little lighter in color. A stand mixer fitted with the paddle attachment also works. Avoid beating until very fluffy; too much air can make the cookies spread or lose their clean stripes.
  3. Add the egg and vanilla. Beat in the egg and vanilla for about 30 seconds, scraping down the bowl once. If the mixture looks slightly curdled, continue with the recipe; it should come together when the flour is added.
  4. Finish the dough. Add the flour mixture in two additions, mixing on low just until no dry patches remain. The dough should be soft and pliable, not sticky enough to coat your fingers heavily. Stop as soon as it comes together, because overmixing can make the baked cookies firm.
  5. Divide and color. Weigh the dough and divide it into six equal portions, or divide it by eye. Put each portion in a separate bowl. Add a small amount of one gel color to each portion and knead it in with clean hands or a spatula until the color is even. Use red, orange, yellow, green, blue, and purple. Add coloring a little at a time; gel color is concentrated, and excess liquid coloring can soften the dough.
  6. Shape the striped log. Roll each colored portion into a rope about 12 inches (30 cm) long. Arrange the ropes tightly side by side in rainbow order on a piece of parchment, with purple at one edge and red at the other. Gently press the ropes together along their length, then nudge the sides into a compact, even log about 2 inches (5 cm) across. If a rope cracks, press it back together with your fingers. Roll the log gently once or twice to close gaps, but do not twist it, which would blur the stripes.
  7. Chill the dough. Wrap the log snugly in parchment or plastic wrap and refrigerate for 1 hour, until firm enough to slice without squashing. If it becomes very hard, leave it on the counter for 5 to 10 minutes before cutting. During the final 15 minutes of chilling, heat the oven to 350°F (177°C) and line two baking sheets with parchment paper.
  8. Slice the cookies. Unwrap the log and use a sharp knife to cut 24 rounds about ½ inch (1.25 cm) thick. Turn the log a quarter-turn every few slices to help keep the cookies round. If the edges crumble, press them gently back into place. Set the rounds about 2 inches (5 cm) apart on the prepared sheets. Add a light sprinkle of coarse sugar or rainbow sprinkles if you like, pressing them gently so they adhere.
  9. Bake in two batches. Bake one sheet at a time for 12 minutes, until the cookie edges look set and the bottoms are just turning pale gold. The centers should still look soft; they will finish setting as they cool. Keep the second sheet in the refrigerator while the first bakes so its cookies stay firm. Do not wait for the tops to brown, since that can make the cookies dry and mute their colors.
  10. Cool before serving. Leave each batch on its baking sheet for 5 minutes, then transfer the cookies to a wire rack and cool for 15 minutes. Handle them gently while warm, when the edges are more delicate. Let the baking sheet cool before adding the next batch, or the dough may begin to spread before it reaches the oven.

Tips

  • Measure flour carefully. Fluff the flour in its container, spoon it into a cup, and level the top. Scooping directly with the cup can pack in extra flour, making the dough dry and more likely to crack as you shape the colored ropes. A kitchen scale gives the most consistent result.
  • Use gel coloring and build the shade gradually. Gel colors give a strong hue with very little added moisture. Liquid food coloring can work in a pinch, but the colors may be paler and the dough softer; add it drop by drop and chill the dough longer if it feels sticky.
  • Keep the stripes even. Try to make all six ropes the same length and thickness before joining them. Small differences are fine, but uneven ropes can make some colors disappear in the finished slices. If the log warms while you work, refrigerate it for 10 minutes before slicing.
  • Do not overbake. These cookies are meant to stay soft in the center. Take them out when the edges are set, even if the middle looks slightly underdone. They firm up as they cool, and extra oven time can turn a tender sugar cookie crumbly.

Serving Suggestions

Arrange the cooled cookies on a flat platter with the striped faces visible so the colors are easy to see. They pair well with coffee, tea, milk, or hot chocolate, and they make a bright addition to a birthday table, school celebration, holiday cookie tray, or dessert buffet. For a coordinated party spread, serve them alongside plain shortbread or chocolate cookies so the rainbow slices stand out rather than compete with other colorful treats.

If you are packing them for a gathering, let them cool completely first. A small paper liner between layers can reduce scuffs, especially if the cookies have sparkling sugar or sprinkles on top. For a simple dessert plate, serve two cookies with fresh berries; the fruit is a refreshing contrast to the buttery sweetness, though the cookies are equally good on their own.

Variations

Make rainbow-sprinkle cookies. Instead of tinting the dough, leave it plain and fold in ½ cup (80 g) rainbow jimmies after adding the flour. Scoop or roll the dough into balls, chill for 30 minutes, and bake at 350°F (177°C) for about 10 to 12 minutes. The sprinkles add color throughout, but the cookies will not have distinct rainbow stripes.

Use a different color palette. Tint the six portions in shades that suit a particular celebration, such as red and green for a winter party or pastels for spring. You can also divide the dough into fewer portions for broader bands of color. Keep the total amount of coloring modest so the dough remains easy to handle.

Add citrus or almond flavor. Replace ½ teaspoon (2.5 ml) of the vanilla with almond extract, or add 1 teaspoon (5 ml) finely grated lemon zest to the butter and sugar. Almond extract has a strong flavor, so use a light hand. The zest adds a fresh citrus aroma without changing the dough’s texture.

Make smaller cookies. Slice the log into ½-inch (1.25 cm) rounds as directed for the standard batch, or cut slightly thinner rounds for smaller portions. Begin checking thinner cookies a few minutes early; they will bake faster. For the most reliable results, keep the slices a similar thickness and bake each sheet together.

Storage and Reheating

Once completely cool, store the cookies in an airtight container at room temperature for up to 5 days. Separate layers with parchment if stacking them, and keep the container away from direct sunlight, which can fade the colors. Refrigeration is not necessary for these baked cookies and may make their texture firm; if your kitchen is very warm, use a cool, dry cupboard instead.

For longer storage, freeze the baked cookies in a freezer-safe airtight container for up to 2 months, separating layers with parchment. Thaw them uncovered at room temperature for about 30 minutes so condensation does not collect on the surface. You can also freeze the wrapped, unbaked dough log for up to 2 months. Thaw it overnight in the refrigerator, then slice and bake as directed; if it is still very firm, let it sit at room temperature briefly before cutting.

These cookies are best served at room temperature, so reheating is usually unnecessary. If you prefer one slightly warm, heat it in a 300°F (150°C) oven for 2 to 3 minutes, then let it stand for a minute before eating. Avoid microwaving for long intervals, which can make the butter-rich cookie greasy or tough as it cools.

Frequently Asked Questions

Can I make the dough ahead of time?

Yes. Wrap the shaped log well and refrigerate it for up to 2 days before slicing and baking. The dough may become quite firm, so let it stand at room temperature for 5 to 10 minutes if the knife has trouble cutting clean rounds. You can also freeze the log for up to 2 months and thaw it in the refrigerator before baking.

Why did my cookies spread or lose their shape?

The dough may have been too warm, the butter may have been overly soft, or the flour may have been under-measured. Chill the log until firm, keep the unbaked slices cold while the first tray bakes, and measure flour by weight when possible. Also check that your oven is fully heated before the cookies go in; an oven thermometer can help if your oven runs hot or cool.

Can I use liquid food coloring instead of gel?

Yes, though gel is easier to use because it colors the dough strongly without adding much liquid. Liquid coloring can produce softer, less vivid dough, so add only a few drops at a time. If the portions become sticky, cover and refrigerate them for 15 to 20 minutes before rolling the ropes.

What if the dough cracks when I slice it?

Let the log sit at room temperature for a few minutes; very cold dough can crack under the knife. Use a sharp, straight-edged knife and cut with a gentle downward motion rather than sawing back and forth. Small cracks can be pressed closed around the edge of each slice before baking, and they will usually be less noticeable once the cookies are baked.

Can I make these without sprinkles?

Absolutely. The colored dough creates the rainbow effect, so the optional topping is only for extra sparkle or crunch. Leave the tops plain for a smooth finish, or press a few sprinkles onto each slice before baking. If sprinkles keep falling off, lightly press them into the dough rather than adding more butter or another coating.

How do I keep the colors from blending together?

Keep the dough portions cool and handle them only until their colors are evenly mixed. Form the ropes next to one another, press them together gently, and avoid twisting or kneading the assembled log. A full hour of chilling firms the butter and helps the stripes hold their shape through slicing and baking.

Related

More recipes to cook

Safety notes: safe minimum internal temperatures from USDA FSIS; raw and undercooked fish guidance from the U.S. FDA. Food safety notes

Spotted an error? Tell us and we will correct it (corrections policy).