A security document has a security device comprising a region of piezochromic material attached to a first part of the document. A contact structure is attached to a second part of the document, different from the first part. The contact structure exhibits relief. When the security device is pressed against the contact structure an optical effect is generated within the piezochromic material which represents the contact structure.