This process is a bit more sophisticated as we're going from the next base to a lessen foundation. Let us say the number we want to convert from decimal to hex is X.
Division in hex is just like division in decimal, https://superseoplus.com/hex-calculator