I'm not sure. This is just a guess: i think it would because the hamster, or person as it may be, could have had some experience in the past (the older you are the more experiences) that leads to his or her preference of a certain color.
this is my question for my science fair project!!!ok here it is 'Does gender affect color preference?' I need this by today. I am doing research and i need as much help as i can get thank you!!! thank you from a 6th grader i need help!!!