To dye coconut, the most common method is to mix liquid or gel food coloring with a small amount of water or vinegar, toss it with shredded or flaked coconut, and let it dry. This works for both sweetened and unsweetened coconut, and for any color you need for baking, cake decorating, or holiday treats. The method differs slightly if you are using powdered food coloring or if you need a very intense color, but the basic technique stays the same.
Pick Your Coloring and Coconut Type First
Start with the coconut you plan to use. Sweetened shredded coconut is the standard choice for baking and decorating because it’s moist and clings to color well. Unsweetened coconut works too, but it is drier, so it may need a bit more liquid to take the color evenly. Flaked coconut, which is larger and flatter, takes color the same way but dries a little slower.
For coloring, liquid food coloring (the kind in small bottles) is the easiest to find and works well for pastel shades. Gel or paste food coloring gives deeper, more vivid colors without adding much liquid, which is helpful if you want to avoid making the coconut soggy. Powdered food coloring is the most concentrated and is great for intense colors, but it needs to be mixed with a liquid first so it doesn’t clump. Avoid using too much liquid overall, because coconut that gets too wet will become mushy and take much longer to dry.
Before You Start: What to Have Ready
- Shredded or flaked coconut (about 1 to 2 cups per batch)
- Food coloring: liquid, gel, or powdered
- Water or white vinegar (vinegar helps set the color and is especially good for bright reds and purples)
- A medium bowl for mixing
- A fork or spoon for stirring
- A baking sheet lined with parchment paper or a wire rack for drying
- Paper towels or a clean kitchen towel for blotting
If you are coloring coconut for a specific recipe, measure out the amount you need before you start. It is easier to color exactly what you will use than to try to store leftover dyed coconut, though dyed coconut can be kept in an airtight container in the fridge for up to a week. For a large batch, like for a cake or a holiday platter, you can work in 2-cup batches to keep the color even.
Mix the Color and Coconut in Even Layers
The key to even color is to start with a small amount of liquid and add more only if needed. For 2 cups of coconut, mix 1/2 teaspoon of water or vinegar with 2 to 4 drops of liquid food coloring, or a pea-sized amount of gel coloring. If you are using powdered coloring, dissolve it in 1 teaspoon of water first. Stir this into the coconut with a fork, tossing and pressing the color into the shreds. The coconut should look lightly tinted but not wet.
If the color is too light after mixing, add a few more drops of coloring, not more liquid. If the coconut looks dry and patchy, add 1/4 teaspoon of water or vinegar at a time, stirring well after each addition. The goal is a uniform color with no white spots and no puddles of liquid at the bottom of the bowl. For a deeper shade, let the colored coconut sit for 5 minutes before drying; the color will absorb and intensify.
Dry the Coconut So It Doesn’t Clump or Mold
Spread the colored coconut in a thin, even layer on a parchment-lined baking sheet or a wire rack. Let it dry at room temperature for 1 to 2 hours, stirring once or twice with a fork to break up any clumps. If you are in a hurry, you can dry it in a 200°F (93°C) oven for 10 to 15 minutes, but watch it closely—coconut can brown quickly, and you only want to dry it, not toast it. Let it cool completely before using, because warm coconut will make frosting or chocolate melt.
For a faster room-temperature method, spread the coconut on a plate and pat it gently with a paper towel to absorb excess moisture, then let it air dry for about 30 minutes. This works well if you are adding the coconut to a recipe immediately and don’t mind a slightly moist texture. For decorating cookies or cakes where you want the coconut to stay crisp, the full drying time is worth it.
Fix Common Problems: Patchy Color, Soggy Coconut, and Fading
| Symptom | Cause | Fix |
|---|---|---|
| Patchy or streaky color | Not enough liquid or not stirring enough | Add a few more drops of coloring mixed with 1/4 teaspoon of water, and toss thoroughly with your hands (wear gloves) or a fork. |
| Coconut is soggy or clumpy | Too much liquid added at once | Spread it out on a paper towel, pat dry, then let it air dry longer. If it is still wet, add a little dry uncolored coconut to absorb the moisture. |
| Color fades after drying | Using liquid coloring without vinegar, or too little coloring | Use gel or paste coloring, or add 1/4 teaspoon of vinegar to the liquid. For reds and purples, vinegar is especially important to keep the color bright. |
| White spots remain | Color not mixed thoroughly | Stir the coconut every few minutes during the first 10 minutes of drying, and press the color into the shreds with the back of a spoon. |
If you are coloring a large batch and want to avoid patchiness, divide the coconut into smaller portions (1 cup each) and color each one separately. This gives you more control and makes it easier to mix evenly. For a marbled or two-tone effect, color half the batch one color and half another, then combine them gently—don’t overmix or you’ll get a muddy blend.
Store Dyed Coconut the Right Way
Dyed coconut should be stored in an airtight container in the refrigerator if you are not using it within a few hours. It will keep for up to 1 week, but check for any signs of mold or off smell before using. For longer storage, you can freeze dyed coconut in a zip-top bag for up to 3 months; thaw it in the refrigerator and let it come to room temperature before using. Do not leave dyed coconut at room temperature for more than 2 hours, especially if it has been mixed with any liquid, because the moisture can encourage bacterial growth.
If you are using dyed coconut as a topping on a cake or cupcakes, add it just before serving so it stays crisp and doesn’t absorb moisture from the frosting. For baked goods like macaroons, you can mix the dyed coconut into the batter, but note that the color may fade slightly during baking—use a deeper shade than you want in the final product.
Rainbow Coconut for a Birthday Cake
Let’s say you need 3 cups of rainbow coconut to cover a cake. Measure out 1/2 cup of coconut for each of six colors: red, orange, yellow, green, blue, and purple. For each color, mix 1/4 teaspoon of vinegar with 2 drops of liquid food coloring (or a small dab of gel) in a small bowl. Add the coconut and stir until evenly tinted. Spread each color on a separate plate and let dry for 1 hour. Once dry, combine all colors in a large bowl and toss gently. You’ll have enough to press onto the sides of a frosted cake. This method works for any number of colors—just keep each batch separate until dry.
For a deeper red or purple, use 4 drops of coloring and let the coconut sit for 10 minutes before drying. For a pastel look, use just 1 drop per 1/2 cup. The vinegar helps the color bind to the coconut and prevents fading, especially for reds and purples. If you don’t have vinegar, you can use water, but the color may be less vibrant and more prone to bleeding onto frosting.
When to Use a Different Method
If you are coloring coconut for a no-bake recipe like a truffle or a refrigerated cake, you can skip the drying step and use the coconut while it is still slightly moist—it will stick better to the outside of the dessert. For a very intense color, like for a themed party, use gel food coloring and let the coconut dry overnight; the color will deepen as it dries. If you are coloring coconut for a savory dish, like a tropical rice or a salad, use a smaller amount of coloring (or none) and skip the vinegar, because the flavor might be noticeable.
For natural coloring, you can use beet juice for pink, spinach juice for green, or turmeric mixed with water for yellow, but these will add a slight flavor and may not be as vibrant. If you need a specific color and are unsure how much coloring to use, start with a small test batch of 1 tablespoon of coconut and adjust from there. This saves you from ruining a whole bag of coconut.