Maxwell experimented in a series of ways (like observing papers printed with primary colours fixed in varying percentages on a spinning top) to understand the working of colour perception. Here he is with one of his tops:
This was an idea for experiment that Maxwell owed to his physics professor at Edinburgh, James David Forbes.