Originally Posted By: help_file
$base(N,inbase,outbase,zeropad,precision)
Converts number N from inbase to outbase. The last two parameters are optional.
$base(15,10,16) returns F
$base(1.5,10,16) returns 1.8
$base(2,10,16,3) returns 002

That's from the help file..

With the above example, it should be fairly easy to figure out. When coming FROM the HTML values, split it into two characters, then $base() from 16->10. These will be your individual RGB values.