private String dumpColorHex( Color color ) {
		boolean hasAlpha = (color.getAlpha() != 255);
		return hasAlpha
			? String.format( "#%06x%02x  %d%%", color.getRGB() & 0xffffff, (color.getRGB() >> 24) & 0xff, Math.round( color.getAlpha() / 2.55f ) )
			: String.format( "#%06x", color.getRGB() & 0xffffff );
	}
Dumps look and feel UI defaults to files.

@author Karl Tauber
flatlaf-testing/src/main/java/com/formdev/flatlaf/testing/uidefaults/UIDefaultsDump.java