Thread:SlackerPrime/@comment-5334617-20140613165325

I don't know why, but I can't comment on your blog entry. Anyway, you left off the  at the end of , and you should try

R$=HEX$(R,2) G$=HEX$(G,2) B$=HEX$(B,2)

Padding on the left with '0's is common enough that the  function already has that feature built-in. 