Prismatic Spray
Eight rays of light flash from you in a 60-foot Cone. Each creature in the Cone makes a Dexterity saving throw. For each target, roll 1d8 to determine which color ray affects it, consulting the Prismatic Rays table.
1d8 Ray
1 Red. Failed Save: 12d6 Fire damage. Successful Save: Half as much damage.
2 Orange. Failed Save: 12d6 Acid damage. Successful Save: Half as much damage.
3 Yellow. Failed Save: 12d6 Lightning damage. Successful Save: Half as much damage.
4 Green. Failed Save: 12d6 Poison damage. Successful Save: Half as much damage.
5 Blue. Failed Save: 12d6 Cold damage. Successful Save: Half as much damage.
6 Indigo. Failed Save: The target has the Restrained condition and makes a Constitution saving throw at the end of each of its turns. If it successfully saves three times, the condition ends. If it fails three times, it has the Petrified condition until it is freed by an effect like the Greater Restoration spell. The successes and failures needn't be consecutive; keep track of both until the target collects three of a kind.
7 Violet. Failed Save: The target has the Blinded condition and makes a Wisdom saving throw at the start of your next turn. On a Successful Save, the condition ends. On a Failed Save, the condition ends, and the creature teleports to another plane of existence (DM's choice).
8 Special. The target is struck by two rays. Roll twice, rerolling any 8.
Prismatic Spray 5e 2024 vs. 2014 edition differences
The 2024 version increases damage to 12d6 for Red, Orange, Yellow, Green, and Blue rays, and adds the "until it is freed by an effect like Greater Restoration" clause for the Petrified condition. It also adds the "consulting the Prismatic Rays table" and specifies the Indigo condition as "Petrified" instead of "permanently turns to stone." The Violet ray's teleportation effect specifies "the creature teleports to another plane of existence (DM's choice)." The 2014 version does not specify the effect of being freed from petrification or the teleportation details.