Array expecting string error when fieldtype is used within matrix
It appears as though $settings['colours'] is an array... which you're then trying to trim and explode.

Can you var_dump($settings['colours'])?

p.s. Nice to see "colours" spelt "correctly" :)