So, I did a test with my unchanged original hextovar function and the following string:
Code:
"[clff0000]ff0000 [cl00ff00]00ff00 [cl0000ff]0000ff [clffffff]ffffff [cl22ff33]22ff33 [cl123456]123456 [cl2234dc]2234dc [cldcf1ac]dcf1ac [cl103004]103004"



I made a screenshot and loaded it into gimp to check all the colours. And they were all correct.



So I donno what's happening in your script, Kartoffel. Can you also do a test like that?