public static String toRgbString(Color color) {
		int r = color.getRed();
		int g = color.getGreen();
		int b = color.getBlue();
		int a = color.getAlpha();

		String rgb = r + "," + g + "," + b;

		if (a != 0xff) {
			return "rgba(" + rgb + "," + a + ")";
		}
		return "rgb(" + rgb + ")";
	}
Returns the rgb value string for the given color
@param color the color
@return the string
Ghidra/Framework/Gui/src/main/java/ghidra/util/WebColors.java