We studied nonlinear optical properties of two different aminobenziliden-1,3-indandione derivatives - DDMABI and DMABI-OH by employing the Z-scan method. Through this we described how different donor and acceptor groups influence third-order nonlinear optical properties such as Kerr effect and two-photon absorption. During experimental measurements we used 1064 nm Nd:YAG laser with 30 ps pulse duration and 10 Hz repetition rate. From acquired values of Kerr and two-photon absorption coefficients we calculated values for real and imaginary parts of third-order susceptibility, as well as second-order hyperpolarizability. Quantum chemical calculations were carried out for secondorder hyperpolarizability to study how well calculations correlate with experimental values. Acquired data for DDMABI and DMABI-OH were compared with data for other ABI derivatives studied previously.