Color conversions in OpenGL

- improved the color conversion framework under OpenGL