User blog:Evilquoll/All 140 named HTML colours

The following table is a list of all 140 (well, 138 unique) colour names recognised by all modern web browsers. I created this table with the intention of helping others create their wiki themes. Yes, I know that there's a similar table on Wikipedia — but the big difference is, this one is sortable, so if you are looking to change a colour to another of similar hue, saturation or whatever, you can click on the appropriate heading. By default, when this page is first loaded it is sorted alphabetically by ascending name.

The headings are: Name — what it says. RGB (Hex) — the hexadecimal triplet value, if for some reason you prefer to use this rather than the name. For brevity, the leading # is omitted, although it is usually required in actual use. RGB (Dec) — as above but decimal. Hue — the position of this colour on a colour circle, in degrees. Red is 0 or 360, green is 120, blue is 240. Saturation — the density of the colour, as a percentage. Black, white and shades near them are 0, full-on colours are 100. Brightness — how light the colour is, as a percentage. Black and near-blacks are 0, white and fully-saturated colours are 100.

However, "brightness" can be misleading; full red, full green (called "lime" in HTML markup) and full blue are all 100% brightness, but red is about three times as bright as blue, and green is about twice as bright as red. Hence this table has one more column:—

Gamma — how bright the colour really is, relative to white. Calculated as 0.3*red+0.6*green+0.1*blue; these are roughly the same weightings as used to calculate the gamma channel in the PAL and NTSC colour television systems. Black is 0, white is 255.