Create a java action with as input a string and output a decimal.
Add this java action to a microflow and make sure the input is a string with the hex code.
Implement the java action via eclipse and for the needed code have a look at this site: https://www.javatpoint.com/java-hex-to-decimal