Browser-safe colors

The below links display the 216 'safe' colors for browsers. If you're unfamiliar with that, just think of the poor people using monitors set to display only 256 colors. Their browsers then use a limited palette, 216 colors to be exact. Other colors get simulated by dithering the 'safe' colors, sort of like Pointillism.

This uses tables (and no graphics files, so it's fast). It presents 6 tables. In the buttons below, the first letter denotes the order of the tables, the second the rows, and the third the columns. So picking BRG, for example, will give you six tables, ordered by increasing values of Blue, with Red values being the rows and Green the columns.

These files are not standard HTML, and may display incorrectly in some browsers.

Give it a try:

See the Perl script that wrote these files: colors.txt. It's actually a good example of how NOT to write a program, but since it was a quick-and-dirty program that I only used once, I don't care enough to rewrite it properly.

Another idea I've seen is displaying the colors according to how dark or light they are. The following may not be the best way to do this, but it was interesting to do, and that's all I care about. What I did was to think of the colors as inhabiting a cube, with the red, green, and blue components determining the position within the cube. Then I defined the darkness (or lightness) of a color as its Euclidean distance from the black (or white) vertex of the cube. So in the results page, colors with the same darkness/lightness are grouped together, with horizontal lines separating those with different values. I'm not satisfied with the way the results look, but it will do for now, and besides, it's not meant to be definitive -- I'm just playing. It's interesting that the way the eye perceives color does not match the way I defined lightness and darkness.

This was also done with a Perl script. (It may not be the most elegant program in the world, but it does what I want.)

My home page