There are no opiates in ecstasy. Ever.
Color has absolutely no indication of a pill, it SHOULD be MDMA, but I bet what you're getting is just a random mixture of piperazines, meth and gross/unknown Research Chemicals.
A good pill can look like anything, and a bad pill can took 10 times better than an MDMA one.
I've seen every color of MDMA pills, white, green, orange, blue, pink, red, purple, hell even brown.
I've probably seen even more colors of piperazine pills. Pink with white spots is a favorite, green and yellow are common too.
COLOR MEANS NOTHING. Neither does the texture, size or smell. You need to test your pills with a reagent.
Check your pills on pillreports.com
Get a Marquis Reagent test kit from dancesafe.org, its $25 measly dollars
Educate yourself on erowid.com
and stop taking random pills. You're putting your life at risk. Every single time.