A replication tool for producing an optical structure (2; 2') comprising an optical element (3, 3'), the replication tool comprising - a central section (c) having a shape defining a negative of a portion of the optical structure (2; 2'), the central section (c) having a vertically aligned central axis; - a surrounding section (s) laterally surrounding the central section (c); - one or more contact standoffs defining a contact plane; wherein all portions of the replication tool are arranged on a same side of the contact plane, wherein a direction pointing from the contact plane into said side along a vertical direction aligned perpendicular to the contact plane, and wherein lateral directions are perpendicular to the vertical direction, wherein, in a first azimuthal range (φ1), a surrounding portion provides a first compensation surface that is concave facing away from the central axis, and wherein in a second azimuthal range (φ2), the surrounding portion provides a second compensation surface facing away from the central axis, wherein an azimuthal range is an angular range in a lateral plane about the central axis, and wherein, in any cross-section containing the central axis in the second azimuthal range (φ2), any steepness of the second compensation surface is higher than any steepness of the first compensation surface in any cross-section containing the central axis in the first azimuthal range (φ1), wherein said steepnesses are both an increase in vertical coordinate of the respective surface per increase in distance from the central axis of the respective surface; wherein, in any cross-section comprising the central axis in the first azimuthal range (φ1), throughout a lateral extension of the first compensation surface, a distance of the first compensation surface from the contact plane increases with increasing distance from the central axis, and wherein the first compensation surface ends in a distance from the central axis at which a distance of the first compensation surface from the contact plane stops increasing with increasing distance from the central axis; wherein, in any cross-section containing the central axis in the first azimuthal range (φ1) in any cross-section containing the central axis in the second azimuthal range (φ2), the surrounding section (s) comprises a retaining portion (r') in which the replication tool, in the respective cross-section, has its smallest non-zero distance to the contact plane, and the retaining portion (r') is located between the central section (c) and the respective compensation surface; wherein an edge is present at the inner end of the first compensation surface and the second compensation surface, said edge being the place where the replication tool is closest to a surface between the respective compensation surface and the central section c, wherein in any cross-section comprising the central axis in the second azimuthal range, the second compensation surface ends where the steepness of the second compensation surface becomes zero or changes sign, and wherein the retaining portion (r') comprises a retaining section (r) in which the replication tool is aligned essentially parallel to the contact plane, wherein the retaining portion (r') completely laterally surrounds the central section (c). - a central section (c) having a shape defining a negative of a portion of the optical structure (2; 2'), the central section (c) having a vertically aligned central axis; - a surrounding section (s) laterally surrounding the central section (c); - one or more contact standoffs defining a contact plane;