Onyx is a banded variety of the oxide mineral chalcedony. The colors of its bands range from white to almost every color (with the exception of some shades, such as purple or blue). Commonly, specimens of onyx contain bands of black and/or white.
Sandstone is a clastic sedimentary rock composed mainly of sand-sized minerals or rock grains. Most sandstone is composed of quartz and/or feldspar because these are the most common minerals in the Earth's crust. Like sand, sandstone may be any color, but the most common colors are tan, brown, yellow, red, grey, pink, white, and black.