bukkit java set leather armor color from hex

Java
//FFFFFF is the hex color, in that case white
leatherArmorMeta.setColor(Color.fromRGB(0xFFFFFF));
Source

Also in Java: