Fixed hex->rgb conversion