HTML colours : Java Glossary
home H words local find no local find frame, full screen Google search web for topic jump to footer translate with Babelfish by Roedy Green ©1996-2008 Canadian Mind Products
Go to : punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all)
HTML colours

Click any ball to view the corresponding colour palette.

Named Colours button Alphabetically (113) button BHS: by Brightness, Hue, Saturation button HBS: by Hue, Brightness, Saturation button SBH: by Saturation, Brightness, Hue button Java AWT Colours (16,777,216)
button RGB: Numerically (113) button BSH: by Brightness, Saturation, Hue button HSB: by Hue, Saturation, Brightness button SHB: by Saturation, Hue, Brightness button Java Swing Colours (16,777,216)
Numbered Colours button HTML 3.2 (16) button Websafe (216) button Rainbow (4096) button Spectrum (401) button X11 (657)
Selected Colours button Pale (256) button Dark (2022) button Simple (105) button Greys (256) button Colour Schemes

HTML 3.2 Standard 16 Colours Sorted Alphabetically

HTML 3.2 Standard 16 named Colours Sorted Alphabetically.
Color Name Using name hex Using hex Red Green Blue Hue Sat Bright
aqua test test test test #00ffff test test test test 0 255 255 0.500 1.000 1.000
black test test test test #000000 test test test test 0 0 0 0.000 0.000 0.000
blue test test test test #0000ff test test test test 0 0 255 0.333 1.000 1.000
fuchsia test test test test #ff00ff test test test test 255 0 255 0.167 1.000 1.000
gray test test test test #808080 test test test test 128 128 128 0.000 0.000 0.502
green test test test test #008000 test test test test 0 128 0 0.667 1.000 0.502
lime test test test test #00ff00 test test test test 0 255 0 0.667 1.000 1.000
maroon test test test test #800000 test test test test 128 0 0 0.000 1.000 0.502
navy test test test test #000080 test test test test 0 0 128 0.333 1.000 0.502
olive test test test test #808000 test test test test 128 128 0 0.833 1.000 0.502
purple test test test test #800080 test test test test 128 0 128 0.167 1.000 0.502
red test test test test #ff0000 test test test test 255 0 0 0.000 1.000 1.000
silver test test test test #c0c0c0 test test test test 192 192 192 0.000 0.000 0.753
teal test test test test #008080 test test test test 0 128 128 0.500 1.000 0.502
white test test test test #ffffff test test test test 255 255 255 0.000 0.000 1.000
yellow test test test test #ffff00 test test test test 255 255 0 0.833 1.000 1.000

How to use the Tables

The table above shows the Standard Netscape colours displayed eight ways, (colour on white, colour on black, black on colour, white on colour) both using alpha names and hex names. You can check out your browser for Netscape colour compatibility. It shows the Standard Netscape 8.0 alpha names such as "aliceblue" and also the hex, RGB and HSB values.

Netscape has a set of built-in colour names you can use HTML in the form:

<font color="aliceblue">
For compatibility with other browsers, it would be safer to specify the HTML with the hexadecimal RGB colour names. Netscape Composer automatically converts the colour names to the corresponding hex values:
<font color="#f0f8ff">
You can use the colours in Java with their decimal RGB names:
Color aliceblue = new Color( 240, 248, 255 );
or with their hex names:
Color aliceblue = new Color( 0xf0f8ff );
Depending on how compatible your browser is with Netscape 8.0, and if your video driver supports full colour, these colours may or may not render properly.

Note that Netscape includes support all the colours in the HTML 3.2 standard colour set.

The one-shot Java program Palette that created the HTML tables shown here is available on request. You can see also see the full table in raw ASCII text form. You might canibalise them to support named colours in your Java apps.


CMP_homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.18] The information on this page is for non-military use only.
You are visitor number 17,700. Military use includes use by defence contractors.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/Mindprod website mirror)
http://mindprod.com/jgloss/netscapehtml.html J:\mindprod\jgloss\netscapehtml.html