Windows 16 colour palette (VGA): hex codes

Updated · Adib Khan

A small pixel-art character walking, drawn in the Windows 16 colour palette
The Walk starter with the Windows 16 colour palette applied: each colour became the nearest one in the palette. Open it in the editor with this palette.

The Windows 16 colour palette

These are the sixteen colours that Windows used on a VGA screen, and the sixteen named colours of early HTML. Every channel is at none, half or full strength, except silver. The set has a dark and a bright version of each primary and secondary colour, and four greys: black, gray, silver and white.

ColourSwatchHexRGB
0, black#0000000, 0, 0
1, maroon#800000128, 0, 0
2, green#0080000, 128, 0
3, olive#808000128, 128, 0
4, navy#0000800, 0, 128
5, purple#800080128, 0, 128
6, teal#0080800, 128, 128
7, silver#c0c0c0192, 192, 192
8, gray#808080128, 128, 128
9, red#ff0000255, 0, 0
10, lime#00ff000, 255, 0
11, yellow#ffff00255, 255, 0
12, blue#0000ff0, 0, 255
13, fuchsia#ff00ff255, 0, 255
14, aqua#00ffff0, 255, 255
15, white#ffffff255, 255, 255

The colours run in the Windows 16 colour order, 0 to 15, from black to white.

To use these colours in another program, copy the list. It is one hex code per line, with no hash, which is the shape most palette pasters want.

000000
800000
008000
808000
000080
800080
008080
C0C0C0
808080
FF0000
00FF00
FFFF00
0000FF
FF00FF
00FFFF
FFFFFF
Draw something in Windows 16 colour.Open the editor

About Windows 16 colour

In the early 1990s Windows ran on VGA screens in sixteen colours, and this was its default set. The same sixteen were written into the early HTML specifications as the standard colour names, which is why a web page can still ask for navy or fuchsia today. The names come from software, not from art: fuchsia is a magenta, aqua is a cyan and lime is a bright green.

Use it in the editor

The easy way is the link under the animation at the top of this page: Open it in the editor with this palette opens a little walker as your own copy, with all 16 colours loaded. Clear the canvas or draw over it and the palette stays. The original is never changed, and each time you open it you get a new project.

To put the palette into a sprite you already have, paste the list.

  1. Copy the hex list above.
  2. Open the editor and open the palette menu, the three dots at the top of the palette panel.
  3. Choose Paste hex list and paste. The editor says how many colours it found: 16 here.
  4. Choose Add to put the colours after the ones you have, or Replace to swap your palette for this one, and press the button at the bottom. A line shows what will change first, for example how many pixels change colour. The whole change is one step, so Undo takes it back.
The PixelFlipbook editor with the walking sample open and the Windows 16 colour palette in the palette panel on the right
The sample in the editor. The palette panel on the right holds the 16 colours of this page.

How the sample was made

The sample is the Walk starter, which is drawn in the PICO-8 palette. It was opened in the editor, the hex list was pasted with Paste hex list and applied with Replace, and the GIF was exported from the editor. Replace swaps each colour for the nearest colour in the new palette, measured as the distance between the two colours in red, green and blue. So the sample shows what you would get, not a touched-up version. Sometimes the nearest colour is not the one you would pick by eye, and that is where you step in and fix a few pixels.

The picture is 16 by 16 pixels, with each pixel drawn as a block of 8 by 8 on screen, so the edges are sharp.

Tips for this palette

Where it comes from

The values on this page are the 16 colours that the W3C HTML 3.2 Reference Specification gives for the BODY element, which it says were "originally picked as being the standard 16 colors supported with the Windows VGA palette". Source: W3C, "HTML 3.2 Reference Specification" (Dave Raggett, 1997), the BODY element; the order is the Windows 16-colour order, as listed in Wikipedia, "List of software palettes".

Every channel is 00, 80 or FF, except silver, which is C0 on all three. The same sixteen are the colour names of HTML 4.01.

Windows is a trademark of Microsoft Corporation, and PixelFlipbook is not affiliated with Microsoft or the W3C. Colour values are facts about hardware, not artwork, and each one here is taken or computed as described above, and from nowhere else.

Lospec, the palette site that most pixel artists know, lists many more palettes, each with its author named. Find more at Lospec. The editor's Browse palettes button reads that list directly when you open it, so authors are credited where they published. Palettes from Lospec are not copied onto this site. We found no licence for reuse in Lospec's terms, so every palette here comes from the named hardware source instead.

Other palettes here: Master System palette, C64 palette, and the palette index. To edit, import or keep colours exact, read the palettes guide.