You’ve brought up a good point, but unfortunately it’s moving into a realm I know less about. This has to do with the display properties of your video driver I believe—the part of your computer responsible for deciding what brightness values to send to the RGB pixels in your monitor. I can’t speak with certainty here, but I’ll give my best understanding, and someone who knows more about computers can correct me if necessary. I believe the video driver takes into account the properties of your specific screen to take the data from whatever you’re doing on your computer and display it in such a way as your eyes will see the color intended by your programs. So, the webcam first has to give the computer data about what colors the user should see, then the video driver will translate that into the light that needs to be emitted by the screen to give your eyes the correct colors.
While I don’t understand the whole process there, I do know that it works, because when I look at a webcam picture the colors look pretty much as they should