Ruby / Corundum:
Opal is a hydrated amorphous form of silica. It is deposited at a relatively low temperature and may occur in the fissures of almost any kind of rock, being most commonly found with limonite, sandstone, rhyolite, marl, and basalt. Precious opal ranges from clear through white, gray, red, orange, yellow, green, blue, magenta, rose, pink, slate, olive, brown, and black. Of these hues, the black opals are the rarest, whereas white and greens are the most common.
Ruby / Corundum is a crystalline form of aluminum oxide (Al2O3) typically containing traces of iron, titanium, vanadium and chromium. It is one of the naturally transparent materials, but can have different colors when impurities are present. Transparent specimens are used as gems, ruby if red and padparadscha if pink-orange. All other colors are called sapphire, e.g., "green sapphire" for a green specimen. Because of corundum's hardness (pure corundum is defined to have 9.0 Mohs), it can scratch almost every other mineral.