At first, let me tell you about the general process of sight. The light is sensed by the retina of an eye. It is in the back part of the eye and contains cells. The cells are photo-receptors(Photo means light) and are of two types; rod cells and cones cells. Cone cells are mainly responsible for colour vision and especially sensitive to Red, Blue and Green. So, these colours are called primary colours.
(http://cdna.allaboutvision.com)
Let me be little more technical, and try to explain Crystal Field Theory. This theory explains about the origin of color in coordination compounds. Consider there are 5 d-orbitals mainly A,B,C,D,E(actually its different) in the central atom of compound. Orbitals are regions in which electrons are found. Let A,B,C(set 1) be in less energy level. D,E(set 2) be in high energy level.
(https://files.askiitians.com)
In ordinary time, electron tries to be in lower energy level i.e. A,B,C(set 1). When light falls in it, light is transmitted, reflected and absorbed. When electron get energy due to absorption, it goes to D,E(set 2). Eventually, it has to come down. When coming down from Set 2 to Set 1, some energy must be released. That energy is in the form of radiation. The wavelength of radiation determines color of the light and hence color of vision.
References