A method for contact sensing includes transmitting optical radiation from an optical emitter coupled to a distal tip of medical probe that is positioned within a body cavity. A signal, which is indicative of a reflection of the optical radiation from tissue in the body cavity, is received from an optical detector coupled to the distal tip. A quality of contact between the distal tip and the tissue is assessed responsively to the signal.