The calculated distance (air line) between Esparreguera and Palma is approximately 142 miles respectively 229 kilometers.
By car or train, the actual journey to Palma is certainly longer, as only the direct route (as the crow flies) between Esparreguera and Palma has been calculated here.
Air line (approximately)
229 kilometers
123 nautical miles