Improved HSV to RGB conversion