The most difficult aspect in representing colours on a computer screen is how do our eyes perceive color.
In short we have two ways to describe the sensitivity of our eyes for different wavelengths, photopic (daylight) or scotopic (nightime) response. Both of them have different curves. In the image below the photopic curve is green, the scotopic curve is red. On the bottom a colour-spectrum is also generated.