Amstrad CPC palette: 27 colours with hex codes

Updated · Adib Khan

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

The Amstrad CPC palette

The Amstrad CPC could show twenty-seven colours: every mix of three levels of red, green and blue, which are none, half and full. That makes a neat cube of colours, with pure primaries, a row of pastels and one mid grey, which the CPC calls White.

ColourSwatchHexRGB
0, Black#0000000, 0, 0
1, Blue#0000800, 0, 128
2, Bright Blue#0000ff0, 0, 255
3, Red#800000128, 0, 0
4, Magenta#800080128, 0, 128
5, Mauve#8000ff128, 0, 255
6, Bright Red#ff0000255, 0, 0
7, Purple#ff0080255, 0, 128
8, Bright Magenta#ff00ff255, 0, 255
9, Green#0080000, 128, 0
10, Cyan#0080800, 128, 128
11, Sky Blue#0080ff0, 128, 255
12, Yellow#808000128, 128, 0
13, White#808080128, 128, 128
14, Pastel Blue#8080ff128, 128, 255
15, Orange#ff8000255, 128, 0
16, Pink#ff8080255, 128, 128
17, Pastel Magenta#ff80ff255, 128, 255
18, Bright Green#00ff000, 255, 0
19, Sea Green#00ff800, 255, 128
20, Bright Cyan#00ffff0, 255, 255
21, Lime#80ff00128, 255, 0
22, Pastel Green#80ff80128, 255, 128
23, Pastel Cyan#80ffff128, 255, 255
24, Bright Yellow#ffff00255, 255, 0
25, Pastel Yellow#ffff80255, 255, 128
26, Bright White#ffffff255, 255, 255

The colours run in the CPC's firmware colour numbers, 0 to 26, which is the order of the table on the CPCWiki page.

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
000080
0000FF
800000
800080
8000FF
FF0000
FF0080
FF00FF
008000
008080
0080FF
808000
808080
8080FF
FF8000
FF8080
FF80FF
00FF00
00FF80
00FFFF
80FF00
80FF80
80FFFF
FFFF00
FFFF80
FFFFFF
Draw something in Amstrad CPC.Open the editor

About Amstrad CPC

The Amstrad CPC range began in 1984 with the CPC 464. A chip called the Gate Array picked the colours from the 27. In the 160 by 200 screen mode a program could show 16 of them at a time, in the 320 by 200 mode 4, and in the 640 by 200 mode 2. A CPC game was often built round the few colours that mode allowed.

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 27 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: 27 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 Amstrad CPC palette in the palette panel on the right
The sample in the editor. The palette panel on the right holds the 27 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 27-colour table on the CPCWiki page "CPC Palette". Source: CPCWiki, "CPC Palette" (cpcwiki.eu).

Each of red, green and blue is at one of three levels: 0%, 50% or 100%, which this page writes as 00, 80 and FF. The table is the nominal one: each channel at 0%, 50% or 100%. The CPCWiki notes that 7F instead of 80 is also used for the half level, and that measurements of real signals (a separate piece of work) differ a little from the nominal table.

Amstrad CPC is the name of a computer range, and PixelFlipbook is not affiliated with Amstrad or with the CPCWiki. 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: Windows 16 palette, Apple II palette, and the palette index. To edit, import or keep colours exact, read the palettes guide.