code: public static String getColorPickedString(final SpColorPickerPreview preview) {
  
          final Color color = preview.getColor();
          return "rgb(" + color.getRed() + "," + color.getGreen() + "," + color.getBlue() + ")";
      }
docs: Get color picked value as string.
  
  @param preview
  the color picker preview
  @return String of color picked value.