Color To OpenGL
This program lets you choose a colour and gives you the color back in 0..1 range including the proper OpenGL call.
Note: You may need at least Java 1.6.02 to run this.
(:applet codebase="color/" code="ColorToOpenGL.class" height="550" width="500":)
The source code can be found here. Feel free to use it and improve it. I'd love to get an email from you with a pointer to a new version if you make improvements.