@Override
			public void mouseClicked(MouseEvent e) {
				if (e.getClickCount() == 2) {
					Color color = getColorFromModel();
					String text =
						WebColors.toHexString(color).toUpperCase() + "  " +
							WebColors.toRgbString(color);
					String colorName = WebColors.toColorName(color);
					if (colorName != null) {
						text += "  " + colorName;
					}
					Clipboard systemClipboard = GClipboard.getSystemClipboard();
					StringTransferable transferable = new StringTransferable(text);
					systemClipboard.setContents(transferable, null);
				}
			}
The background color, foreground color, and font are already set to the
defaults from the defaults table before this method is called.
Ghidra/Framework/Docking/src/main/java/docking/options/editor/SettableColorSwatchChooserPanel.java