Use this applet to experiment with the 24-bit RGB color model:
The code for this applet can be found
here.