gallery of original ASCII-art works by llizard aka ejm

Category: HTML

ridiculous colour test

colour test using nonstandard colours
(poorly colourized ASCII art)

In 1995, when we got our first computer, before I understood anything at all about hexadecimal numbers, my sister and I regaled ourselves by seeing what would happen when we used entirely non-standard colours on an HTML page. The following is the body tag we used.

<body alink="#silly" bgcolor="#tomfoolery" link="#llizard" 
text="#colour" vlink="#ridiculous">

Not surprisingly, the page will NOT be rendered “correctly” here. WordPress does not like “tomfoolery” as a background colour… I had to cheat and use a real hexadecimal number for the background.

In 1995, I wrote:

1995

I decided to play this HTML colour game that my sister thought of.

But it isn’t a good idea to USE these colours because they aren’t hexadecimal and they won’t work everywhere. In fact, they probably only work here in Netscape if you’re running Windows95!

           ,---~
          /_,^%---  ha
           />  \ ha
      ____/ >     ha
     (#  o) >
      '--~ /|^^
ejm        | \

What a beautiful colour! (On my machine it is, anyway.) It is called “#LLIZARD”. And this colour is called “#BBUNNY”. I just randomly put names into the colour slots. This colour is called “#VKSBEST”. T will be so relieved that he has a colour other than black. !!!!!! I am still trying to blunder my way onto a yellow or white with an “#0SC11WEE”. This sister would be quite pleased with her colour. How disappointing for my sister that her name makes such an awful colour. And this is lovely and quite pleasing for the sister it’s named for. My niece would like that her name turns pink. My mother would be quite happy with this colour.

“#PANCAKES” are one of my favourite breakfasts. We decided not to use “#OATMEAL” in the batter. oooooo (How ironic that “#CRANBERRY” is correct.) But we thought that this would be a good addition to the pancakes. We thought that “#PECANS” would also be good in the pancakes. With plenty of “#MAPLESYRUP”. And of course we’ll have #COFFEE too. (I certainly hope that it doesn’t turn out to be the same colour as “#COFFEE”!) With plenty of “#CREAM”. (The background colour for this page is appropriately named #TOMFOOLERY)

Here is a screenshot that I took of the page when it was on the previous server:

tomfoolery


to llizards

HTML for ASCII-art

llizard (aka ejm)So… you want to use ASCII-art on your website & aren’t sure of the HTML coding?

revised August 2000, October 2003, March 2007, August 2008

               /
       \\      \,^%---
       |\\      <_ \ Fear not. It's quite simple....
      ---- ==   >/
     [_____]  __>,^
ejm   |   |  //| |

Warning! I do not claim to be an expert in HTML. But the following HTML and CSS instructions for placing ASCII-art on an HTML page do work, as well as passing the rigorous XHTML and CSS validation tests. They have been checked in Firefox 1.5, 2.0 & 3.0, MSIE 5.5, 6.0 & 7.0, Opera9.5, Navigator 9, Safari 2 & 3 for Windows, Linux and Mac OS’s as well as whatever Lynx version the Toronto Freenet uses. In short, this coding method should work for all the later browsers and many of the earlier ones. (Of course, the colours most definitely do not work in Lynx.)

Even if you don’t plan to draw any pictures with ASCII characters, this technique is particularly good for displaying charts, such as the ASCII character chart on this site….

Your             
                 
  /\ (`/`|| _     +
 /--\,)\,||   (||`|
                 
        goes here

To get the above, here is what you type into your html document:

<pre>

Your             
                 
  /\ (`/`|| _     +
 /--\,)\,||   (||`|
                 
        goes here

                
</pre>   

To display the following characters > (greaterthan), & (ampersand) and < (lessthan), you should replace them with character entities:

type > instead of >
type & instead of &
type < instead of <

Here is an example of ASCII-art using the characters >, & and <

     "", &&&
     / && * >
    /  && _C ,""     EEeeee
    \  )(    /
     \   \__/
      ) (
     (  |
  |   \ |
  |    \|
  |   /_|
  |  /  |
  |__)__)__
  |        |  
  |        |             oo__
  |        |            <;___)------
  | ejm    |       oo__   " "
                  <;___)------     oo__
                    " "           <;___)------
                                    " "

To get the above drawing, copy the text below into your html document. Don’t worry that it looks distorted in your text editor. It will come out correctly on the web.

<pre>
     "", &amp;&amp;&amp;
     / &amp;&amp; * &gt;
    /  &amp;&amp; _C ,""     EEeeee
    \  )(    /
     \   \__/
      ) (
     (  |
  |   \ |
  |    \|
  |   /_|
  |  /  |
  |__)__)__
  |        |  
  |        |             oo__
  |        |            &lt;;___)------
  | ejm    |       oo__   " "
                  &lt;;___)------     oo__
                    " "           &lt;;___)------
                                    " "

</pre>

Please take a look at a chart of the standard ASCII characters.


If you want to center the whole thing, like this,

 

: Your                :
:                     :
:   /\ (`/`|| _     + :
:  /--\,)\,||   (||`| :
:                     :
:         goes here   :

 

Ensure that all your lines are the same length – including any white space. (This will not center in Lynx.)

Here is what you should type into your HTML document.

<center>
<pre>
: Your                :
:                     :
:   /\ (`/`|| _     + :
:  /--\,)\,||   (||`| :
:                     :
:         goes here   :
</pre>
</center>

But as I said, it won’t necessarily be centered in all browsers. Why? … just because.

You may be able to center it in some stubborn browsers by using CSS:

 

! Your                !
!                     !
!   /\ (`/`|| _     + !
!  /--\,)\,||   (||`| !
!                     !
!         goes here   !

 

The following coding would be placed in your stylesheet (more on that in the following section on adding colour). As long as the width is set to less than 100%, and the margins are set to "auto", the ASCII-art should become centered on the page.

.center_me_on_page {text-align:center; width:99%; margin:auto;}

And the following class="center_me_on_page" would be added to the coding on your HTML page:

<pre class="center_me_on_page">
! Your                !
!                     !
!   /\ (`/`|| _     + !
!  /--\,)\,||   (||`| !
!                     !
!         goes here   !
</pre>

Heh, as I said, it should become centered…. However, once again, there is still no guarantee that it will be centered in all browsers. That’s just the way that computers are. There isn’t really much sense in breaking your back to get it to work in every possible situation. All you can do sensibly is get it to look the way you want in as many browsers as you have access to (concentrate on the most popular, such as Firefox, Internet Explorer, Safari, etc. and hope for the best. To help you, there is a wonderful service at http://www.browsershots.org that will give you screenshots of your page in several different browsers.


And if you want to add colour, you can do it with style sheets as well.

It can only be viewed by the later MSIE and Netscape browsers (version 4 and up) that have “style sheets” enabled. Some code goes between <head> and </head> and there is a little additional coding in the body section as well.

To get the following,

  Your                 
                       
    /\ (`/`|| _     +  
   /--\,)\,||   (||`|  
                       
          goes here    

Here is what you should type for your html document. Please note that this is a three step process.

  1. First, open up a text file to create your stylesheet.
    pre {font-family:monospace !important;}
    
    .red {background:transparent; color:#f00;}
    .green {background:transparent; color:#060;}
    .blue {background:transparent; color:#009;}
    
    .white {
    background:#fff;color:#000;
    width:45%;
    margin:auto;
    padding:5px;
    text-align:center;
    border:10px double #ff0;
    }
    

    Save this as “ascii-art_style.css” and place the file in your ascii-art folder. You may have noticed pre {font-family:monospace !important;} at the top there. This probably isn’t absolutely necessary. However, there are some wags out there who play fast and loose with font choices. It’s absolutely essential that <pre> renders a fixed width font so that ASCII-art doesn’t just look like a jumbled mess of characters.

  2. Second, open your HTML file in a text editor. Somewhere between <head> and </head>, type the following code that you see between the double dotted lines.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <head>
    <title>coloured ASCII-art</title>
    :::::::::::::::::::double dotted line:::::::::::::::::::
    
    <link rel="stylesheet" href="/ascii-art/ascii-art_style.css" type="text/css" />
    
    :::::::::::::::::::double dotted line:::::::::::::::::::
    </head>
    
    

    Please remember to add the final slash in the style tag with doctype XHTML so your page will validate. Note that when you call up the file with href="/ascii-art/ascii-art_style.css" (note the included leading slash and folder name along with the file name), you can use this stylesheet on any page and in any folder of your site and the ascii-art_style stylesheet will take effect.

  3. Third, still in the HTML file, somewhere under <body>, type the following code that you see between the double dotted lines. Save the file as “ascii-art.html” (or whatever name you like; just ensure that the extension is “.html”) and place the file in your ascii-art folder.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <head>
    <title>coloured ASCII-art</title>
    <link rel="stylesheet" href="/ascii-art/ascii-art_style.css" type="text/css" />
    </head>
    <body>
    [...]
    :::::::::::::double dotted line::::::::::::::
    
      Your                 
                           
        /\ (`/`|| _     +  
       /--\,)\,||   (||`|  
                           
              goes here    
    

    :::::::::::::double dotted line::::::::::::::

    [...]
    </body>
    </html>

Let’s say you want to have one example of your ASCII-art on a black background and the rest on white.

To get the following,

  Your                 
   (white background)  
    /\ (`/`|| _     +  
   /--\,)\,||   (||`|  
                       
          goes here    


  Your                 
   (black background)  
    /\ (`/`|| _     +  
   /--\,)\,||   (||`|  
                       
          goes here    

Here are the changes you would make to your stylesheet.

/* everything except the background colour and default text will be the same */
.red {background:transparent; color:#f00;}
.green {background:transparent; color:#060;}
.blue {background:transparent; color:#009;}

.white, #black {
background:#fff;color:#000;
width:25%;
margin:auto;
padding:5px;
text-align:center;
border:10px double #ff0;
}
/* change the background colour from white to black
and default text colour from black to white */
#black {background:#000;color:#fff;}

/* change to a lighter shade of blue for the black background */
#black .blue {background:#000; color:#06f;}
#black .green {background:#000; color:#393;}

And this is what you would place in your HTML file:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<title>coloured ASCII-art</title>
<link rel="stylesheet" href="/ascii-art/ascii-art_style.css" type="text/css" />
</head>
<body>
[...]
:::::::::::::::::::double dotted line:::::::::::::::::::
<div class="white">
<pre>
  <span class="red">Your</span>                 
   (white background)  
    <span class="grn">/\ (`/`|| _     +  
   /--\,)\,||   (||`|</span>  
                       
          <span class="blu">goes here</span>    
</pre>
</div>

:::::::::::::::::::double dotted line:::::::::::::::::::

<div id="black">
<pre>
  <span class="red">Your</span>                 
   (black background)  
    <span class="grn">/\ (`/`|| _     +  
   /--\,)\,||   (||`|</span>  
                       
          <span class="blu">goes here</span>    
</pre>
</div>
:::::::::::::::::::double dotted line:::::::::::::::::::

[...]
</body>

Please note that you can only have ONE id per page. If you plan to have more instances of black background ascii-art, use class instead.

And speaking of the idiosyncracies of some browsers, the people who are in charge of MSIE’s development are children of the universe and like to do whatever they want. Luckily, you can specify coding and text that are JUST for IE viewers. Simply place whatever it is you want IE viewers to see between <!--[if IE]> and <![endif]-->.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<title>coloured ASCII-art</title>
<link rel="stylesheet" href="/ascii-art/ascii-art_style.css" type="text/css" />
<!--[if IE]>
<style type="text/css">
/*The following will be seen only by those viewing with IE*/
#black {
background:#fff;color:#000;
width:30%;
</style>
<![endif]-->
</head>
<body>
[...]
<body>
</html>

Please consult a colour chart for hexadecimal numbers. Don’t forget to put </span> when you want to change colours. Of course, this method may be foiled by people who like to change the background or text colours of any webpage they are viewing. But, it is their loss if they choose not to see your stunningly coloured ASCII-art.


I hope all that helps you!


                     \ 
                      \,^^%---
                      <\/  \ See? It's easy when you know how....
                      >
                      >^^
                     /| 
ejm                  | \


For more information about HTML and cascading style sheets, please consult W3Schools Introduction to HTML, W3Schools Introduction to CSS, HTML Dog: HTML Beginner Tutorial and/or HTML Dog: CSS Beginner Tutorial.

Many many thanks go to browsershots.org for the fantastic service they offer of testing web design in different browsers and showing the results with screenshots.

© llizard 1997, 1998, 2000-2001, 2003, 2007, 2008 (last modified 13 August 2008)


FAQ | Copyright Myths | ASCII characters chart | character entities | putting ASCII-art on a webpage | “internet safe” colours | choosing colours

character entities

recommended for encoding . standard characters . cautionary tale about extended characters

Because the symbols ” & < > (double quotationmark, ampersand, lessthansymbol and greaterthansymbol) are integral to HTML code itself, you should be replacing all instances of ” & < > that are used for anything other than the code itself. It is also useful to employ character entities to replace characters in e-mail addresses that are entered on your webpages. This helps greatly in preventing robots from mining e-mail addresses for spam purposes. In your HTML coding, replace the character with &#numberofcharacter; (ampersand, hashmark, numberofcharacter, semicolon). Instead of &, you would type &amp;.

edited August 2008

N.B. The folks at w3c now recommend that if accented characters are to be used, the UTF-8 charset be chosen rather than iso-8859-1. But the characters ” & < > (double quotationmark, ampersand, lessthansymbol and greaterthansymbol) should still be encoded, as well as any extended characters you may be using. Put the following coding just before </head>.

<meta http-equiv=”content-type” content=”text/html; charset=utf-8″ />

It is probably still a good idea to encode the @ symbol especially if the mailto: link is used. Please see the recommended for encoding section.

(Read more on the w3c Internationalization page.)Note that extended characters can be typed as-is on some blogging platforms. The blog software will translate the characters into character entities as required for viewing correctly on HTML pages, but leave them alone for RSS feeds. (Indeed, in moving these pages to wordpress.com, getting this page to display has been quite challenging. The software wants to automatically changing the coding instructions into the actual characters….)

ASCII stands for “American Standard Code Information Interchange”. The numbers of the characters can be found by referring to the character map on your computer. The characters numbered from #032 to #126 are common to all keyboard systems. (#032 is the spacebar and is not the recommended character entity to depict a non-breaking space.)

recommended for encoding

recommended for encoding . standard characters . cautionary tale about extended characters

characters to be replaced with entities for display in HTML

use these character entities – strongly recommended

Character & Name     Character Entity
_______________________________________
&   ampersand            &amp;      
<   lessthan             &lt;       
>   greaterthan          &gt;       
"   quotationmark        &quot;     
@   at                   &#064;     
©   Copyright            &copy;     

Use &nbsp; to indicate 
a nonbreaking space in HTML.

encoding examples using some of the above characters

extended characters – A Cautionary Tale

recommended for encoding . standard characters . cautionary tale about extended characters

The characters numbered from #127 to #255 (and higher) are not common to all keyboard systems and can look quite different on different operating systems. Please bear that in mind when you use these characters.

Here is an example using the character #189. These will look different depending on whether you are viewing this page on a PC or a Mac or a….

After looking at the character map on my PC, it looks like #189 in “Symbol” font will show a “vertical bar“.

Symbol font #189: ½

But when I look at it here on the webpage, even though this computer has the symbol font installed, I see a “one half” symbol in Netscape7, Firefox and Opera. The “vertical bar” only appears in IE6 and the ancient and little-used NS4. See “standard characters” for the character entity for | (vertical bar)

Here is the character #189 in a “sans-serif” font: ½

In this case, on my PC, as expected, I see a “one half” symbol, but depending on your OS, you might be seeing an asterisk, or the symbol for Pi, or ?, or ….

“wingdings” #189: ½
On my PC, I see an “analogue clock” symbol showing 07:00. But anyone who doesn’t have the wingdings font installed will see “one half” (or maybe an asterisk, or the symbol for Pi, or….)

Moral of the story: It is inadvisable to use specific fonts for symbols. If you really want the characters you use on your website to be viewed relatively globally, it’s a very good idea to follow the guidelines at www.w3.org. If you plan on using extended characters, you might want to use images rather than entities unless you know categorically that your viewers will be able to see them.

standard characters

recommended for encoding . standard characters . cautionary tale about extended characters

These characters will look the same from computer to computer.
(Use a fixed-width font for ASCII-art and charts)

Courier, FixedSys, Monaco and the generic monospace are examples of non-proportional or fixed width fonts and are used for drawing ASCII-art and making charts. It is ill advised to use Times New Roman, Times, Symbol or any other proportional width fonts for drawing ASCII-art or making charts.

   &#032;    3   &#051;    F   &#070;    Y   &#089;    l   &#108;

!   &#033;    4   &#052;    G   &#071;    Z   &#090;    m   &#109;

"   &#034;    5   &#053;    H   &#072;    [   &#091;    n   &#110;

#   &#035;    6   &#054;    I   &#073;    \   &#092;    o   &#111;

$   &#036;    7   &#055;    J   &#074;    ]   &#093;    p   &#112;

%   &#037;    8   &#056;    K   &#075;    ^   &#094;    q   &#113;

&   &#038;    9   &#057;    L   &#076;    _   &#095;    r   &#114;

'   &#039;    :   &#058;    M   &#077;    `   &#096;    s   &#115;

(   &#040;    ;   &#059;    N   &#078;    a   &#097;    t   &#116;

)   &#041;    <   &#060;    O   &#079;    b   &#098;    u   &#117;

*   &#042;    =   &#061;    P   &#080;    c   &#099;    v   &#118;

+   &#043;    >   &#062;    Q   &#081;    d   &#100;    w   &#119;

,   &#044;    ?   &#063;    R   &#082;    e   &#101;    x   &#120;

-   &#045;    @   &#064;    S   &#083;    f   &#102;    y   &#121;

.   &#046;    A   &#065;    T   &#084;    g   &#103;    z   &#122;

/   &#047;    B   &#066;    U   &#085;    h   &#104;    {   &#123;

0   &#048;    C   &#067;    V   &#086;    i   &#105;    |   &#124;

1   &#049;    D   &#068;    W   &#087;    j   &#106;    }   &#125;

2   &#050;    E   &#069;    X   &#088;    k   &#107;    ~   &#126;

#032 is the space bar.

Some people prefer named entities rather than
numbered because they are easier to remember.

"  quotation mark      &#034;  or   &quot;   
&  ampersand           &#038;  or   &amp;    
'  single quote        &#039;  or  &apos;    
<  less than           &#060;  or   &lt;     
>  greater than        &#062;  or   &gt;     

N.B. apos; is NOT fully supported.
Use #039; instead

 

Other charactersets can be found at www.w3.org – Internationalization page.

© llizard (aka ejm) 1998, 2000, 2001, 2003, 2004, 2005, 2006, 2008, 2015

(Yes, the above © symbol is displayed on this page by using the entity &copy;)


FAQ | Copyright Myths | ASCII characters chart | character entities | putting ASCII-art on a webpage | “internet safe” colours | choosing colours

Hexadecimal 216 Color Code Chart

llizard (aka ejm) “Internet Safe” Colours

revised August 2008

internet safe 216 colour chart . horrible colour combo demo

Apparently, there are only 216 of the 256 colours that won’t be altered in some strange way by various browsers. At the bottom of this page is a chart showing the colours that you can be relatively sure will look the same from browser to browser.

Note that the hexadecimal colour code is always preceded by # (number sign) and should always be enclosed in quotation marks when used in an HTML tag. With stylesheets (CSS), the colour code is not enclosed in quotation marks but the hexadecimal number must still be preceded by # (number sign).

What do the numbers mean? Briefly, they are based on RedGreenBlue. The first two numbers/letters signify how much red is in the colour; the middle two numbers/letters how much green; the last two numbers how much blue. Remember that the colours being mixed are not pigments but light (like the colours cast from a prism) so the traditional pigment colour wheel does not work.

colourwhl This is how the colours mix with light.

red + blue = magenta
red + green = yellow
green + blue = cyan
red + blue + green = white

If all the colours are used fully (signified by the letter “f“), the light becomes white. (Remember when mixing pigment, all colours used fully yields the colour black.) If none of the colours are used (signified by the number zero, “0” ), there is no light and so it becomes black.

By mixing all the colours (red, blue and green) equally, one gets white, grey or black:

#ffffff #cccccc #999999 #666666 #333333 #000000

By mixing red and blue equally and eliminating green, one gets a shade of magenta:

#ff00ff #cc00cc #990099

By mixing red and green equally and eliminating blue, one gets a shade of yellow:

#ffff00 #cccc00 #999900

By mixing blue and green equally and eliminating red, one gets a shade of cyan (turquoise):

#00ffff #00cccc #009999

I’m still trying to get a handle on what the other numbers and letters mean but you can see how easy it is to get the primary and secondary colours now.

        "#ff0000" is Red
        "#00ff00" is Green
        "#0000ff" is Blue
        "#ffff00" is Yellow
        "#ff00ff" is Magenta
        "#00ffff" is Cyan
        "#000000" is Black
        "#ffffff" is White

colour216 As you experiment with colours, you’ll see that some of them don’t show up well against light or dark backgrounds. Please bear this in mind as you choose colours for your HTML documents. I have also created a little colour palette (gif 2.77kb) that you can use if you are making your own gifs.

To convert the hexadecimal numbers into decimal RGB numbers:

           Hexadecimal 00 is equal to decimal   0
           Hexadecimal 33 is equal to decimal  51
           Hexadecimal 66 is equal to decimal 102
           Hexadecimal 99 is equal to decimal 153
           Hexadecimal cc is equal to decimal 204
           Hexadecimal ff is equal to decimal 255

Example: #ff0033 is 255-0-51 in RGB

But you will probably want to use hexadecimal colour codes rather than RGB (simply because there are far more pages on the internet about how to use hexadecimal than there are about RGB). Whatever you choose, it is a good idea to specify a background colour similar to the background of your background image if you are using one; occasionally the image does not load.

For instance, you may want to have some texture for your background, rather than just flat colour. You can achieve this by tiling an image. Below are two examples of ways to render the colours on such a page with a virtual black background and white text, blue links, yellow visited links and green active links. Note the American spelling of “color” (the “u” is missing) for HTML and CSS coding .

This is what can happen when no default colour is chosen and the background image fails to load in your visitor’s browser.

(Use your cursor to highlight the above section to see that there are more words.)

This is what will happen when a default colour is chosen and the background image fails to load (or images are disabled) in your visitor’s browser. Choose the predominant colour of your background image as the background colour. With these ferns, the predominant colour is dark so black seems to be a viable option.

background image from silviahartmann.com

Old style HTML to show a page with a black background, white text, green links, yellow visited links and blue active links:

<body bgcolor="#000000" 
background="/images/ferns.jpg" 
text="#ffffff" 
link="#ccffcc" 
vlink="#ff99cc" 
alink="#99ccff">

CSS to show a page with black background, white text, green links, yellow visited links, green background/black text hover and focus links and blue active links. (Note that the active spec must be presented last on the list):

body {background:#000000 url('/images/ferns.jpg'); color:#ffffff;}

a, a:link {background:transparent; color:#ccffcc;}
a:visited {background:transparent; color:#ff99cc;}
a:focus, a:hover {background:#ccffcc; color:#000000;}
a:active  {background:transparent; color:#99ccff;}

Here are the colours that you can be relatively sure will look the same from browser to browser.

216 Hexadecimal Colour Codes
#ffffff #ffffcc #ffff99 #ffff66 #ffff33 #ffff00
#ccffff #ccffcc #ccff99 #ccff66 #ccff33 #ccff00
#99ffff #99ffcc #99ff99 #99ff66 #99ff33 #99ff00
#66ffff #66ffcc #66ff99 #66ff66 #66ff33 #66ff00
#33ffff #33ffcc #33ff99 #33ff66 #33ff33 #33ff00
#00ffff #00ffcc #00ff99 #00ff66 #00ff33 #00ff00
#00ccff #00cccc #00cc99 #00cc66 #00cc33 #00cc00
#33ccff #33cccc #33cc99 #33cc66 #33cc33 #33cc00
#66ccff #66cccc #66cc99 #66cc66 #66cc33 #66cc00
#99ccff #99cccc #99cc99 #99cc66 #99cc33 #99cc00
#ccccff #cccccc #cccc99 #cccc66 #cccc33 #cccc00
#ffccff #ffcccc #ffcc99 #ffcc66 #ffcc33 #ffcc00
#ff99ff #ff99cc #ff9999 #ff9966 #ff9933 #ff9900
#cc99ff #cc99cc #cc9999 #cc9966 #cc9933 #cc9900
#9999ff #9999cc #999999 #999966 #999933 #999900
#6699ff #6699cc #669999 #669966 #669933 #669900
#3399ff #3399cc #339999 #339966 #339933 #339900
#0099ff #0099cc #009999 #009966 #009933 #009900
#0066ff #0066cc #006699 #006666 #006633 #006600
#3366ff #3366cc #336699 #336666 #336633 #336600
#6666ff #6666cc #666699 #666666 #666633 #666600
#9966ff #9966cc #996699 #996666 #996633 #996600
#cc66ff #cc66cc #cc6699 #cc6666 #cc6633 #cc6600
#cc33ff #cc33cc #cc3399 #cc3366 #cc3333 #cc3300
#ff66ff #ff66cc #ff6699 #ff6666 #ff6633 #ff6600
#ff33ff #ff33cc #ff3399 #ff3366 #ff3333 #ff3300
#ff00ff #ff00cc #ff0099 #ff0066 #ff0033 #ff0000
#cc00ff #cc00cc #cc0099 #cc0066 #cc0033 #cc0000
#9900ff #9900cc #990099 #990066 #990033 #990000
#9933ff #9933cc #993399 #993366 #993333 #993300
#6633ff #6633cc #663399 #663366 #663333 #663300
#6600ff #6600cc #660099 #660066 #660033 #660000
#3300ff #3300cc #330099 #330066 #330033 #330000
#3333ff #3333cc #333399 #333366 #333333 #333300
#0033ff #0033cc #003399 #003366 #003333 #003300
#0000ff #0000cc #000099 #000066 #000033 #000000

There are also some named colours that deviate from this somewhat restrictive list of 216 colours. They are supported by all major browsers but there is no guarantee that they are supported by all browsers. Read more about named colours at W3Schools HTML Color Names.

For more information about HTML, cascading style sheets and colour, please consult W3Schools Introduction to HTML, W3Schools Introduction to CSS, W3Schools: HTML Colors, HTML Dog: HTML Beginner Tutorial and/or HTML Dog: CSS Beginner Tutorial.

internet safe 216 colour chart . horrible colour combo demo


© llizard 1998-2003, 2005, 2008

FAQ | Copyright Myths | ASCII characters chart | character entities | putting ASCII-art on a webpage | “internet safe” colours | choosing colours

 

Colour Demo: a demonstration of hideous colour choices

internet safe 216 colour chart . horrible colour combo demo

This page has been set up to demonstrate how important colour choices are in webdesign (or any design for that matter). Hover your cursor over the various sections of the menu to highlight links so they are readable.

about poor colour choices

At first it might not seem too bad (cough), but imagine a whole lot of text. And then if that text is italicized, made bold, larger and smaller fonts used in a haphazard manner, the irritation bar is raised to a higher level. Add some blinking text or a number of multicoloured animated images (mercifully not added to this page), and you will soon find that nobody stays on your site. The colours here are ones that I personally find to be intensely irritating on the eyes. And of course, for the colourblind, it’s probably almost impossible to distinguish between colours that are of the same intensity.

I also find that a lot of yellow text on a large bright blue background is pretty awful too. And then if a script-font is chosen, it’s even worse. And worse still if the font size is particularly small. But that’s another story….

Just to demonstrate this particular colour choice more fully, I’ve made use of the handy Lorem ipsum text.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?

Pretty horrible, eh?

Please hit the following links to see the hideous result when half the links are visited and half are not. If one link and another link are embedded in the text, it gets worser and worser.

It looks about as frightening with the colours reversed and “school” green as the background colour. Even more than with the above colours, the link to the middle of the page and the link to the top of the page that are embedded in the text do not work at all well. The italic, larger font and smaller font are the same bad. This sort of thing can be fixed by declaring the colours in CSS only (which I did for this page), but chances are that many of your viewers don’t know how to disable CSS and/or won’t take the time to bother and will just leave your site, never to return.

conclusion:

Please, choose your colours carefully.

internet safe 216 colour chart

© llizard 2004, 2008