The answers are visual spectrum and pupil. The visible light spectrum is a narrow band of frequencies ranging from 390 to 780 wavelengths long. These wavelengths are detectable by the eye and the different length corresponds to different colors.
The pupil determines how much light can enter the eye. It dilates and constricts depending on the amount of light available.