private void updateColorFromColorNameField() {

		String text = colorNameField.getText();
		String colorText = text.replaceAll("\s", "");
		Color color = WebColors.getColor(colorText);

		if (color == null) {
			color = WebColors.getColor('#' + colorText);
		}

		if (color != null) {
			getColorSelectionModel().setSelectedColor(color);
		}
	}
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