private int getHsbCompareValue(Color v) {
			// compute a value the compares colors first by hue, then saturation, then brightness
			// reduce noise by converting float values from 0-1 to integers 0 - 7
			float[] hsb = Color.RGBtoHSB(v.getRed(), v.getGreen(), v.getBlue(), null);
			return 100 * (int) (10 * hsb[0]) + 10 * (int) (10 * hsb[1]) + (int) (10 * hsb[2]);
		}
A color {@link Comparator} for ordering colors.
Ghidra/Framework/Gui/src/main/java/ghidra/util/ColorUtils.java