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.
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.