Added colorConvert function to CommonComponent