How can I convert hex color to RGB code in Java? Mostly in Google, samples are on how to convert from RGB to hex.
The easiest way:
// 0000FF public static Color hex2Rgb(String colorStr) { return new Color(Integer.valueOf(colorStr, 16)); }