bugfix in color conversion

@Martin1887 discovered a bug in color conversion if hue is 0