Opal is hydrous quartz or quartz that has water molecules attached to it.
This is what gives opal its color play.
A triplet is when a thin slice of precious opal is sandwiched between a layer of onyx as a base and a layer of spinel as a prorective cap for the fragile opal.