Ophthalmological composition that is made of acrylate and / or methacrylate and has a UV absorber in which one or several units of acrylic acid or methacrylic acid are through an alkyl spacer linked to a basic structure of substituted or unsubstituted coumarin, thus as a violet absorber (yellow dye) made from a substituted or unsubstituted nitroaniline N-alkoxyacrylated or Nalkoxymethacrylate or based on a substituted or unsubstituted nitroaniline N, N-dialkoxyacrylated or N, Ndialkoxymethacrylate.Composición oftalmológica que está hecha a base de acrilato y/o metacrilato y presenta un absorbedor UV en el que una o varias unidades de ácido acrílico o ácido metacrílico están a través de un espaciador alquilo enlazadas a una estructura básica de cumarina sustituida o insustituida, así como un absorbedor violeta (colorante amarillo) hecho a base de un nitroanilina sustituida o insustituida N-alcoxiacrilada o Nalcoximetacrilada o bien a base de un nitroanilina sustituida o insustituida N,N-dialcoxiacrilada o N,Ndialcoximetacrilada.