Learn java Yourself

RGB Applet


RGB applet shows the combinations of Red Green and Blue colors and does automatic conversion from hexadecimal values to decimal values and vice versa. Updated (12/09/98). There are four ways to choose colors:

Some notes: Hexadecimal values use the numbers 0-9 and characters A-F.Hex value 00 coresponds to 0 decimal and FF to 255. The hex value should have 6 characters or numbers, two for each value, R, G, B. If you enter an invalid number in any of the boxes, a message in the status bar will appear and default values will be used.
Your browser doesn't support java or java is not enabled!

Copy the following code and put it in an html file:
<APPLET CODE=RGB.class WIDTH=470 HEIGHT=200>
Your browser doesn't support java or java is not enabled!
</APPLET>
Download the class and put it in the same Directory


Created 2001