Light is a powerful stimulant for human alertness and cognition, presumably acting through a photoreception system that heavily relies on the photopigment melanopsin. In humans, evidence for melanopsin involvement in light-driven cognitive stimulation remains indirect, due to the difficulty to selectively isolate its contribution. Therefore, a role for melanopsin in human cognitive regulation remains to be established. Here, sixteen participants underwent consecutive and identical functional MRI recordings, during which they performed a simple auditory detection task and a more difficult auditory working memory task, while continuously exposed to the same test light (515 nm). We show that the impact of test light on executive brain responses depends on the wavelength of the light to which individuals were exposed prior to each recording. Test-light impact on executive responses in widespread prefrontal areas and in the pulvinar increased when the participants had been exposed to longer (589 nm), but not shorter (461 nm), wavelength light, more than 1 h before. This wavelength-dependent impact of prior light exposure is consistent with recent theories of the light-driven melanopsin dual states. Our results emphasize the critical role of light for cognitive brain responses and are, to date, the strongest evidence in favor of a cognitive role for melanopsin, which may confer a form of "photic memory" to human cognitive brain function.fMRI | non-image-forming