added colour to rgb conversion