How to convert String like "FF00FF" to long (RGB) ?

You would do it the same way on an Arduino as you would do it with a pencil and paper. Each column represents the number multiplied by the appropriate power of 16 - 0, 1, 2 up to 5.

...R