Eating the rainbow encourages consuming plant foods across the full range of colours, on the basis that the pigments themselves are bioactive compounds with different effects. Unlike most catchy dietary rules this one has a reasonable basis, since the colours genuinely correspond to distinct chemical families. It is a heuristic rather than a precise instruction, and as heuristics go it is one of the more useful ones available.
Why colour indicates something real
Plant pigments are not decorative. They are compounds the plant produces for specific purposes, frequently protection against ultraviolet light, oxidative damage or predation, and many are biologically active when eaten. Because different chemical families produce different colours, the visible spectrum of a diet is a rough proxy for the range of phytochemicals it contains. That correspondence is imperfect and it is genuine, which is more than can be said for most dietary shortcuts. Many of these compounds are produced in response to environmental stress, which is one reason wild and less intensively grown plants sometimes contain more of them. Different pigments correspond to different phytochemical families, which is the reasoning behind the advice.
What each colour group contains
Red foods including tomatoes, watermelon and pink grapefruit are rich in lycopene, a carotenoid associated with prostate health in observational research. Orange and yellow foods including carrots, sweet potato, squash and peppers supply beta-carotene and other carotenoids that the body converts to vitamin A. Green vegetables provide lutein, zeaxanthin, folate and, in the case of brassicas, glucosinolates that convert to sulforaphane. Blue and purple foods including berries, red cabbage and aubergine contain anthocyanins. White and brown foods including onions, garlic, leeks and mushrooms supply allicin, quercetin and various other compounds. Glucosinolates in brassicas are also the compounds responsible for the bitterness some people taste strongly, which is genetically determined and affects vegetable preference from childhood. Betalains in beetroot are a further distinct family, and their nitrate content has separate evidence relating to blood pressure and exercise performance.
What the evidence supports
The strongest finding is that variety of plant intake is associated with better outcomes independently of quantity. Research examining the number of distinct plant species eaten weekly has found associations with greater gut microbial diversity, and diversity is itself associated with several markers of health. Studies of specific carotenoids and flavonoids find associations with cardiovascular and cognitive outcomes. What has not been shown is that any particular colour is essential or that a deficiency of one produces a specific consequence. The thirty plants a week figure comes from observational microbiome work and is a useful target rather than a validated threshold. Frozen and tinned produce count fully and are frequently cheaper than fresh equivalents.
Cooking and absorption
Colour does not survive preparation uniformly, and the direction is not always what people expect. Lycopene in tomatoes becomes substantially more absorbable when cooked, particularly with oil. Beta-carotene similarly benefits from cooking and fat. Anthocyanins are water-soluble and leach out during boiling. Sulforaphane formation in brassicas requires an enzyme destroyed by prolonged heat, so brief cooking or chopping and resting before cooking preserves more of it. Vitamin C degrades with heat and time. Eating a mix of raw and cooked vegetables therefore captures more than committing to either, which is a simpler conclusion than the individual mechanisms suggest.
Where the rule oversimplifies
Colour intensity does not reliably track compound concentration, and some pale foods are nutritionally excellent. Onions, garlic, cauliflower, mushrooms and white beans are all pallid and all valuable, which is a problem for anyone applying the rule literally, as our guide to the no white foods approach illustrates. Artificially coloured foods obviously do not count. And a diet of five differently coloured sweets satisfies the letter of the rule entirely. Fruit juice also satisfies the colour rule while behaving quite differently from the fruit it came from, which illustrates the limits of any purely visual heuristic.
The practical version
Aim for a range across the week rather than at every meal, since forcing five colours onto one plate produces contrivance rather than variety. Counting distinct plant species over a week is a more useful target than counting colours, with thirty commonly suggested and any increase being an improvement. Herbs, spices, nuts, seeds, pulses and wholegrains all count towards that total, which makes it considerably easier to reach than it sounds, and our meals and cooking section covers building it into ordinary cooking. Tinned, frozen and dried plant foods all count towards a weekly species total, which makes reaching a reasonable number considerably more achievable.