Both of the target creatures must be exactly the same color or combination of colors. Both being colorless is also okay. If they differ in any way, you can still cast the spell, but it does not do anything on resolution.

Artwork
Loading artwork…
Dead Ringers
Mystery Booster 2 · #41 · EN
Nonfoil—Foil—
Card rules
Destroy two target nonblack creatures unless either one is a color the other isn't. They can't be regenerated.
"Beautiful, isn't it?" crowed Crovax. "They fought together. Now they will die together."
Common · Illustrated by Greg Staples
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
PreDH Legal
Premodern Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Penny Not Legal
Pioneer Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
Colors are checked on resolution.