Please have a look at the following article for an overview of Binary, Octal, Decimal & Hex values.

Each hex digit is in the range of [0-F]. To represent a hex digit, 4 bits are required. For example, have a look at the below combinations.

0000 ---> 0
0001 ---> 1
0010 ---> 2
0011 ---> 3
0100 ---> 4
0101 ---> 5
0110 ---> 6
0111 ---> 7
1000 ---> 8
1001 ---> 9
1010 ---> A
1011 ---> B
1100 ---> C
1101 ---> D
1110 ---> E
1111 ---> F

Now, let's consider the following binary value 52F

To find its equivalent hexadecimal value, replace each Hex digit with its equivalent binary combination as shown above.

Binary = 010100101111

1. Hexadecimal to binary (Refer above section)

Example:

Hexadecimal = 52F
Binary = 010100101111
Octal = 2458

Hexadecimal = 52F
Decimal = 1327