private void updateColor(Color newColor) {

		// change the color to a darker value if the color being set is light
		String colorString =
			WebColors.toString(ColorUtils.contrastForegroundColor(newColor), false);
		previewLabel.setText(
			"<html><CENTER><I><FONT SIZE=2 COLOR=" + colorString + ">click</FONT></I></CENTER>");

		previewLabel.setBackground(color);
	}
Color editor that is a bit unusual in that its custom component is a button that when pushed,
pops up a dialog for editing the color. Use {@link ColorPropertyEditor} for a more traditional
property editor that returns a direct color editing component.
Ghidra/Framework/Docking/src/main/java/docking/options/editor/ColorEditor.java