<p>What is the most efficient way to do this?</p>

A hex value is just RGB numbers represented in hexadecimal. So you just have to take each pair of hex digits and convert them to decimal.
Example:
```
```
#FF6400 = RGB(0xFF, 0x64, 0x00) = RGB(255, 100, 0)
```
```