The register bits of the palettes are on register bit layouts, and the colour format on the summary page. This page is about the choice of colours the Color’s boot ROM makes for a game that has no colour of its own. It rests on two sources, and the page says which fact comes from which:
- Pan Docs (
Palettes.md,Power_Up_Sequence.md; raw Markdown, CC0, read 2026-11-19): the algorithm. Pan Docs does not contain the tables. It only links to them. - The SameBoy source (
BootROMs/cgb_boot.asmat the commit Pan Docs links,1d7692cf; licence: Expat, the MIT licence; kept insamples/gb/sources/sameboywith SHA-256 in the sample README): the numbers. SameBoy’s file is a free reimplementation of the Color boot ROM, not Nintendo’s code. Pan Docs calls its title list “almost complete”. We have no dump of the real boot ROM here, so we could not check that the tables are identical to Nintendo’s. The comments naming the games are SameBoy’s.
Palettes in the hardware
Source: Palettes.md.
- Monochrome: BGP (
$FF47) gives a shade, 0 white to 3 black, to each of the four colour indices of the background and window. OBP0 and OBP1 ($FF48,$FF49) do the same for objects, but their low two bits are ignored because index 0 is transparent. - Color: 8 background palettes and 8 object palettes of 4 colours, kept in two 64-byte colour RAMs that are reached only through the index and data registers (BGPI/BGPD, OBPI/OBPD). A colour is 15-bit RGB (5 bits each), stored little-endian in two bytes; bit 15 is ignored. The data registers cannot be used in mode 3. The index registers can, and the address wraps from 63 to 0 with auto-increment; a write that fails still increments, a read never does. The boot ROM sets all background colours to white; in Color mode it leaves object colours undefined apart from the first byte of OBJ 0 colour 0.
- In compatibility mode (a Color running a monochrome game) the Color palettes are still used. The background uses background palette 0, probably because the whole attribute map is zeros. Objects use object palette 0 or 1 by bit 4 of their attribute. BGP, OBP0 and OBP1 then index into those Color palettes instead of choosing greys.
How the boot ROM picks a palette
Source: Power_Up_Sequence.md, “Compatibility palettes”, and cgb_boot.asm (GetPaletteIndex) for the table layout.
- Licensee check. If the old licensee code (
$014B) is$33, the new licensee code ($0144–$0145) must be the ASCII text “01”. Otherwise the old code must be$01. In effect: the publisher in the header must be Nintendo. If the check fails, palette ID$00is used. - Title checksum. Add the 16 bytes of the title (
$0134–$0143), keeping the low 8 bits. - Search the checksum table for that value and note its index. If it is not found, ID
$00is used. If the index is 64 or less, the index is the palette ID and the search ends. - Fourth letter. Otherwise (checksums that more than one game shares) the fourth letter of the title is looked up in a second table. If it is not found, ID
$00. If it is found, the index is increased by 14 times the row in which the letter was found (the first row adds nothing, the second 14, and so on).
The ID then picks three palettes (object 0, object 1, background) from a combination table, and each of those picks four colours. In SameBoy’s layout the checksum list is 65 plain entries (indices 0 to 64) followed by 29 entries (65 to 93) in three rows of 14, 14 and 1; the search takes the first entry whose checksum matches and, for indices 65 and up, whose fourth letter matches. The tables below use that numbering, which is also the palette ID, since SameBoy gives one combination number per entry.
- The player can override the choice during the logo animation by holding button combinations, when the CGB flag has bit 7 clear (monochrome-only game). Each new choice stops the animation from ending for 30 frames. Some choices equal automatic ones, others are unique (Pan Docs links the TCRF page).
- Pan Docs says that if the ID is
$43or$58, the Nintendo logo’s tile map is also written to VRAM, for games that animate the logo. It appears suddenly in the middle of the screen. In SameBoy’s table only the entry with checksum$58carries this flag (the “DMG boot tilemap” flag on its palette entry). SameBoy’s checksum list writes one entry as$43 | $80, which is$C3, and gives it no flag. Pan Docs and the SameBoy source are not reconciled on this point and the page does not decide it. - When the CGB flag says the game is a Color game (bit 7 set), none of this applies: the flag byte goes to KEY0 and the game sets its own palettes (see memory map).
The title checksum table
Source: SameBoy cgb_boot.asm (TitleChecksums, PalettePerChecksum, Dups4thLetterArray). “Combination” is the number of the row in the combination table. Titles are SameBoy’s comments (a blank means it names none; “???” are its own question marks). Checksums are in hexadecimal.
Entries 0 to 64: checksum alone
| Index | Checksum | Title (SameBoy’s comment) | Combination |
|---|---|---|---|
| 0 | $00 | default palette | 0 |
| 1 | $88 | ALLEY WAY | 4 |
| 2 | $16 | YAKUMAN | 5 |
| 3 | $36 | BASEBALL (also Game and Watch 2) | 35 |
| 4 | $D1 | TENNIS | 34 |
| 5 | $DB | TETRIS | 3 |
| 6 | $F2 | QIX | 31 |
| 7 | $3C | DR.MARIO | 15 |
| 8 | $8C | RADARMISSION | 10 |
| 9 | $92 | F1RACE | 5 |
| 10 | $3D | YOSSY NO TAMAGO | 19 |
| 11 | $5C | 36 | |
| 12 | $58 | X | 7 (with the logo tile map flag) |
| 13 | $C9 | MARIOLAND2 | 37 |
| 14 | $3E | YOSSY NO COOKIE | 30 |
| 15 | $70 | ZELDA | 44 |
| 16 | $1D | 21 | |
| 17 | $59 | 32 | |
| 18 | $69 | TETRIS FLASH | 31 |
| 19 | $19 | DONKEY KONG | 20 |
| 20 | $35 | MARIO’S PICROSS | 5 |
| 21 | $A8 | 33 | |
| 22 | $14 | POKEMON RED (also GAMEBOYCAMERA G) | 13 |
| 23 | $AA | POKEMON GREEN | 14 |
| 24 | $75 | PICROSS 2 | 5 |
| 25 | $95 | YOSSY NO PANEPON | 29 |
| 26 | $99 | KIRAKIRA KIDS | 5 |
| 27 | $34 | GAMEBOY GALLERY | 18 |
| 28 | $6F | POCKETCAMERA | 9 |
| 29 | $15 | 3 | |
| 30 | $FF | BALLOON KID | 2 |
| 31 | $97 | KINGOFTHEZOO | 26 |
| 32 | $4B | DMG FOOTBALL | 25 |
| 33 | $90 | WORLD CUP | 25 |
| 34 | $17 | OTHELLO | 41 |
| 35 | $10 | SUPER RC PRO-AM | 42 |
| 36 | $39 | DYNABLASTER | 26 |
| 37 | $F7 | BOY AND BLOB GB2 | 45 |
| 38 | $F6 | MEGAMAN | 42 |
| 39 | $A2 | STAR WARS-NOA | 45 |
| 40 | $49 | 36 | |
| 41 | $4E | WAVERACE | 38 |
| 42 | $C3 (written $43 | $80) | 26 | |
| 43 | $68 | LOLO2 | 42 |
| 44 | $E0 | YOSHI’S COOKIE | 30 |
| 45 | $8B | MYSTIC QUEST | 41 |
| 46 | $F0 | 34 | |
| 47 | $CE | TOPRANKINGTENNIS | 34 |
| 48 | $0C | MANSELL | 5 |
| 49 | $29 | MEGAMAN3 | 42 |
| 50 | $E8 | SPACE INVADERS | 6 |
| 51 | $B7 | GAME&WATCH | 5 |
| 52 | $86 | DONKEYKONGLAND95 | 33 |
| 53 | $9A | ASTEROIDS/MISCMD | 25 |
| 54 | $52 | STREET FIGHTER 2 | 42 |
| 55 | $01 | DEFENDER/JOUST | 42 |
| 56 | $9D | KILLERINSTINCT95 | 40 |
| 57 | $71 | TETRIS BLAST | 2 |
| 58 | $9C | PINOCCHIO | 16 |
| 59 | $BD | 25 | |
| 60 | $5D | BA.TOSHINDEN | 42 |
| 61 | $6D | NETTOU KOF 95 | 42 |
| 62 | $67 | 5 | |
| 63 | $3F | TETRIS PLUS | 0 |
| 64 | $6B | DONKEYKONGLAND 3 | 39 |
Entries 65 to 93: checksum and fourth letter
For these checksums, which several games share, the fourth letter of the title must also match. A space in the letter column is a literal space. The SameBoy comment shows the fourth letter in square brackets.
| Index | Checksum | Fourth letter | Title (SameBoy’s comment) | Combination |
|---|---|---|---|---|
| 65 | $B3 | B | ???[B]???????? | 36 |
| 66 | $46 | E | SUPER MARIOLAND | 22 |
| 67 | $28 | F | GOLF | 25 |
| 68 | $A5 | A | SOLARSTRIKER | 6 |
| 69 | $C6 | A | GBWARS | 32 |
| 70 | $D3 | R | KAERUNOTAMENI | 12 |
| 71 | $27 | B | ???[B]???????? | 36 |
| 72 | $61 | E | POKEMON BLUE | 11 |
| 73 | $18 | K | DONKEYKONGLAND | 39 |
| 74 | $66 | E | GAMEBOY GALLERY2 | 18 |
| 75 | $6A | K | DONKEYKONGLAND 2 | 39 |
| 76 | $BF | space | KID ICARUS | 24 |
| 77 | $0D | R | TETRIS2 | 31 |
| 78 | $F4 | - | ???[-]???????? | 50 |
| 79 | $B3 | U | MOGURANYA | 17 |
| 80 | $46 | R | ???[R]???????? | 46 |
| 81 | $28 | A | GALAGA&GALAXIAN | 6 |
| 82 | $A5 | R | BT2RAGNAROKWORLD | 27 |
| 83 | $C6 | space | KEN GRIFFEY JR | 0 |
| 84 | $D3 | I | ???[I]???????? | 47 |
| 85 | $27 | N | MAGNETIC SOCCER | 41 |
| 86 | $61 | A | VEGAS STAKES | 41 |
| 87 | $18 | I | ???[I]???????? | 0 |
| 88 | $66 | L | MILLI/CENTI/PEDE | 0 |
| 89 | $6A | I | MARIO & YOSHI | 19 |
| 90 | $BF | C | SOCCER | 34 |
| 91 | $0D | E | POKEBOM | 23 |
| 92 | $F4 | space | G&W GALLERY | 18 |
| 93 | $B3 | R | TETRIS ATTACK | 29 |
The rows fall into three groups of 14 (indices 65–78, 79–92) and one (93), which matches Pan Docs’ “14 times the row”: the same 14 checksums repeat in each row with a different fourth letter. Our reading, from the table: the checksum list is searched from the top, so a checksum in the first list (index 0 to 64) is found first and its fourth letter is never looked at.
The palette combinations
Source: SameBoy cgb_boot.asm (PaletteCombinations). Each row names three palettes from the colour table: the one for object palette 0, the one for object palette 1 and the one for the background. The three rows marked “raw” start at a colour number instead of a palette number (palettes are four colours long, so palette n starts at colour 4n): they begin in the middle of a palette and take four colours across a palette boundary. SameBoy adds four rows of its own (51 to 54) that no original game uses; they are given after the table.
| Combination | OBJ 0 | OBJ 1 | Background |
|---|---|---|---|
| 0 | 4 | 4 | 29 |
| 1 | 18 | 18 | 18 |
| 2 | 20 | 20 | 20 |
| 3 | 24 | 24 | 24 |
| 4 | 9 | 9 | 9 |
| 5 | 0 | 0 | 0 |
| 6 | 27 | 27 | 27 |
| 7 | 5 | 5 | 5 |
| 8 | 12 | 12 | 12 |
| 9 | 26 | 26 | 26 |
| 10 | 16 | 8 | 8 |
| 11 | 4 | 28 | 28 |
| 12 | 4 | 2 | 2 |
| 13 | 3 | 4 | 4 |
| 14 | 4 | 29 | 29 |
| 15 | 28 | 4 | 28 |
| 16 | 2 | 17 | 2 |
| 17 | 16 | 16 | 8 |
| 18 | 4 | 4 | 7 |
| 19 | 4 | 4 | 18 |
| 20 | 4 | 4 | 20 |
| 21 | 19 | 19 | 9 |
| 22 (raw) | colour 15 | colour 15 | colour 44 (palette 11) |
| 23 | 17 | 17 | 2 |
| 24 | 4 | 4 | 2 |
| 25 | 4 | 4 | 3 |
| 26 | 28 | 28 | 0 |
| 27 | 3 | 3 | 0 |
| 28 | 0 | 0 | 1 |
| 29 | 18 | 22 | 18 |
| 30 | 20 | 22 | 20 |
| 31 | 24 | 22 | 24 |
| 32 | 16 | 22 | 8 |
| 33 | 17 | 4 | 13 |
| 34 (raw) | colour 111 | colour 0 (palette 0) | colour 56 (palette 14) |
| 35 (raw) | colour 111 | colour 16 (palette 4) | colour 60 (palette 15) |
| 36 | 19 | 22 | 9 |
| 37 | 16 | 28 | 10 |
| 38 | 4 | 23 | 28 |
| 39 | 17 | 22 | 2 |
| 40 | 4 | 0 | 2 |
| 41 | 4 | 28 | 3 |
| 42 | 28 | 3 | 0 |
| 43 | 3 | 28 | 4 |
| 44 | 21 | 28 | 4 |
| 45 | 3 | 28 | 0 |
| 46 | 25 | 3 | 28 |
| 47 | 0 | 28 | 8 |
| 48 | 4 | 3 | 28 |
| 49 | 28 | 3 | 6 |
| 50 | 4 | 28 | 29 |
Row 22 starts at colour 15 of the colour table, which is the last colour of palette 3 followed by the first three colours of palette 4; rows 34 and 35 start at colour 111, the last colour of palette 27 followed by the first three of palette 28. This is our reading of SameBoy’s raw_palette_comb macro (offsets of 2 bytes per colour); we did not run the boot ROM. SameBoy’s own extra combinations: 51 = (30, 30, 30) “CGA”, 52 = (31, 31, 31) “DMG LCD”, 53 = (28, 4, 1), 54 = (0, 0, 2).
The colours
Source: SameBoy cgb_boot.asm (Palettes). Thirty palettes of four 15-bit colours (the format of Color palette memory: bits 4–0 red, 9–5 green, 14–10 blue), listed as the 16-bit words that go into the palette RAM. The colours run from index 0 (lightest in most) to 3.
| Palette | Colour 0 | Colour 1 | Colour 2 | Colour 3 |
|---|---|---|---|---|
| 0 | $7FFF | $32BF | $00D0 | $0000 |
| 1 | $639F | $4279 | $15B0 | $04CB |
| 2 | $7FFF | $6E31 | $454A | $0000 |
| 3 | $7FFF | $1BEF | $0200 | $0000 |
| 4 | $7FFF | $421F | $1CF2 | $0000 |
| 5 | $7FFF | $5294 | $294A | $0000 |
| 6 | $7FFF | $03FF | $012F | $0000 |
| 7 | $7FFF | $03EF | $01D6 | $0000 |
| 8 | $7FFF | $42B5 | $3DC8 | $0000 |
| 9 | $7E74 | $03FF | $0180 | $0000 |
| 10 | $67FF | $77AC | $1A13 | $2D6B |
| 11 | $7ED6 | $4BFF | $2175 | $0000 |
| 12 | $53FF | $4A5F | $7E52 | $0000 |
| 13 | $4FFF | $7ED2 | $3A4C | $1CE0 |
| 14 | $03ED | $7FFF | $255F | $0000 |
| 15 | $036A | $021F | $03FF | $7FFF |
| 16 | $7FFF | $01DF | $0112 | $0000 |
| 17 | $231F | $035F | $00F2 | $0009 |
| 18 | $7FFF | $03EA | $011F | $0000 |
| 19 | $299F | $001A | $000C | $0000 |
| 20 | $7FFF | $027F | $001F | $0000 |
| 21 | $7FFF | $03E0 | $0206 | $0120 |
| 22 | $7FFF | $7EEB | $001F | $7C00 |
| 23 | $7FFF | $3FFF | $7E00 | $001F |
| 24 | $7FFF | $03FF | $001F | $0000 |
| 25 | $03FF | $001F | $000C | $0000 |
| 26 | $7FFF | $033F | $0193 | $0000 |
| 27 | $0000 | $4200 | $037F | $7FFF |
| 28 | $7FFF | $7E8C | $7C00 | $0000 |
| 29 | $7FFF | $1BEF | $6180 | $0000 |
SameBoy adds two palettes of its own, which no original game selects: 30 = $7FFF, $7FEA, $7D5F, $0000 (“CGA 1”) and 31 = $4778, $3290, $1D87, $0861 (“DMG LCD”).
Manual choices
While the logo animation runs, a held direction (with A or B) picks a combination instead. From SameBoy’s KeyCombinationPalettes:
| Held | Combination |
|---|---|
| Right | 1 |
| Left | 48 |
| Up | 5 |
| Down | 8 |
| Right + A | 0 |
| Left + A | 40 |
| Up + A | 43 |
| Down + A | 3 |
| Right + B | 6 |
| Left + B | 7 |
| Up + B | 28 |
| Down + B | 49 |
SameBoy’s own extra choices are Right + A + B (combination 51) and Left + A + B (52). SameBoy is a reimplementation: whether Nintendo’s ROM offers exactly these twelve choices is not confirmed here. Pan Docs only says that some manual choices equal automatic ones and others are unique.
Colour appearance
Source: Palettes.md. The Color’s screen is not lit, so the brightest value is light grey, not white. Its colour mixing is odd (raising one component raises the others), so $03EF looks neon green on a PC but a washed-out yellow on the Color. On the early Advance, intensities $00–$07 look black, so many Color games are hard to play. A newer game can detect the Advance (A = $11 and bit 0 of B set) and convert, with GBA ≈ GBC × 3/4 + $08 per component, which Pan Docs says is close but not perfect. The later Advance SP and the Game Boy Player do not have the problem. The SGB’s palette format is the same 15 bits but is shown with a different gamma (see Super Game Boy).
Sources
- Raw Pan Docs Markdown (CC0), read 2026-11-19, in
samples/gb/sources/pandocs:Palettes.md,Power_Up_Sequence.md,Specifications.md. - SameBoy
BootROMs/cgb_boot.asmat commit1d7692cff5552e296be5e1ab075c4f187f57132c(Expat licence), insamples/gb/sources/sameboy, with its licence text and SHA-256 in the sample README. - Palettes, Power-Up Sequence – Pan Docs; TCRF: Game Boy Color Bootstrap ROM, which Pan Docs names for the table of assigned palettes and the manual choices (not read here)
Not described
Known, not yet covered
- The tables come from the SameBoy reimplementation, not from a dump of Nintendo’s boot ROM, and the TCRF tables that Pan Docs names were not read. A second source to compare against would be a real Color boot ROM or the TCRF page.
Unknown
- Whether Pan Docs’ “ID
$43or$58” for the logo tile map and SameBoy’s single flagged entry ($58) describe the same rule.