If something is in sight or within sight, you can see it. If it is out of sight, you cannot see it.
The sandy beach was in sight.
The Atlantic coast is within sight of the hotel. [+ of]
We parked out of sight of passing traffic to avoid attracting attention. [+ of]