Why do the connectors on my computer’s sound card have different colours ?

The green represents the audio output of your computer. It is usually used to plug in headphones or speakers. The red/pink represents the input for your computer’s microphone. Other colours (blue, orange, black, grey and yellow) can be present. They are used for more sophisticated sound systems (5.1 or 7.1) and are usually not used for Via.