The human vision system has adaptation mechanisms that cannot be managed with the classic tri-stimulus color theory. The effects of these mechanisms are clearly visible in some well-known perception phenomena as color illusions, but they are always present in human observation. The discrepancy between the observation of a real scene and the observation of a picture taken from the same scene, derives from the fact that the camera does not have such mechanisms. In this paper, we propose a biologically inspired implementation of the Retinex algorithm, introduced by Land and McCann, that simulates these adaptation mechanisms, in order to reproduce some effects like dynamic adjustment, color constancy, etc. typical of the human vision system. The algorithm has been tested not only on a Mondrian-like patchwork to measure its effect, but also on different pictures, photographs and typical color illusions to test its adaptation effects. The examples demonstrate the ability of the model to emu...