Sm64 Color Code Generator < ULTIMATE >
So, you have a perfect hex code from your SM64 Color Code Generator. How do you actually make Mario wear it?
The SM64 Color Code Generator is not just for Mario. You can use the exact same codes to recolor:
The logic is universal: Any surface in SM64 that uses a "solid color" (not a texture) relies on the 5-bit RGB555 system.
An SM64 Color Code Generator is a software tool (usually web-based or a small executable) that translates standard RGB (Red, Green, Blue) color values into the specific hexadecimal or decimal color codes used by the Super Mario 64 engine.
Here is the crucial distinction: SM64 does not use modern 24-bit or 32-bit color depth for its character models. Instead, it uses a limited palette system tied to the Nintendo 64’s hardware constraints. While a modern monitor can display 16.7 million colors, SM64’s in-game rendering engine for Mario’s texture data typically relies on 16-bit color modes (RGB565 or RGBA16, depending on the build). Sm64 Color Code Generator
A naive user might just open a texture in Photoshop, paint Mario’s hat red, and save it. But when they load the ROM, they find banding, transparency errors, or colors that look completely different. This is because the N64 microcode expects data in a very specific format. The SM64 Color Code Generator bridges this gap.
The impact of the generator on internet culture was massive. Before modern 3D avatars (like in VRChat) or accessible game engines (like Unity or Unreal), the Super Mario 64 engine was the sandbox for budding animators.
The Color Code Generator gave birth to the "Recolor" phenomenon.
Creators like SuperMarioGlitchy4 (SMG4) built entire empires on the backs of these color codes. In the narrative of these videos, Mario wasn't just one person; he was part of a multiverse of identical-looking clones with different color palettes. The Color Code Generator was the printing press for this multiverse. So, you have a perfect hex code from
If you want to try this yourself, follow this practical guide. For this example, we will assume you are using a popular web-based generator (many exist on ROM hacking forums like SMW Central or The Mushroom Kingdom).
Step 1: Choose Your Target
Decide what you want to recolor. Mario’s overalls (blue), his shirt (red), his skin, or his cap. In the SM64 decompilation source code, these are often found in src/game/geo_mario.c or texture files.
Step 2: Find Your Desired Modern Color
Use a standard color picker (like in GIMP, Photoshop, or a browser extension) to get your RGB values. Let’s say you want a dark, royal purple for Mario’s shirt: R=102, G=0, B=153.
Step 3: Input into the Generator Open your SM64 Color Code Generator tool. The logic is universal: Any surface in SM64
Step 4: Interpret the Output The generator will return two likely outputs:
Step 5: Apply the Code
Using a hex editor (like HxD) or, preferably, the SM64 Builder environment, locate Mario’s color attribute. Replace the existing color value (e.g., 0xF800 for red) with your new hex 0x4A10. Recompile the ROM.
Step 6: Test Load your ROM in an emulator like Project64 or simple64. If the purple looks slightly darker than expected, that is not an error—that is the N64’s RGB565 quantization at work. Use the generator to tweak the brightness input until the output matches your intent.
