How much a thing blocks what lies behind it. Full opacity hides; none reveals.
Latin opacus (shaded, darkened, opaque), of uncertain further origin; a surface's opacity is how much shade it casts on what is behind it.
How much of what lies behind a surface is allowed to show through it. Full opacity hides completely; none at all is no barrier.