allow any valid colour type in colour input fields

Tweaked checking of colour values to allow any supported colour value (supported by the browser), so a CSS colour name, rgb() or rgba() value.