Web Safe 216-Color Cube

The Purpose

Back in the day when web-safe colors were an important idea, I wrote this page in PHP. And it was a big table. Then I re-wrote it in JavaScript so that it would not need a web server to run. But at that time I didn't know much about the DOM so I literally replaced all calls to echo () and print () with calls to document.write () and called it a day.

Improvements

The buttons work like this:

Update 2015

I added the Hue, Saturation, and Value buttons, which sort by Hue, etc. and give a hover popup that shows the HSV values.