Fucntion added to get color in RGB mode
Function for RGB color mode added