getting color from palette