Super Mario 64 (SM64) is more than just a game; it is a cornerstone of speedrunning, modding, and 3D platforming history. For nearly three decades, players have dissected every polygon of Peach’s Castle. However, one of the most enduring trends in the modern SM64 community is visual customization—specifically, changing the color of Mario’s hat, overalls, and shirt.
If you have ever searched for an "SM64 Color Code Generator," you are likely a ROM hacker, a texture artist, or a casual player tired of the standard red. You want the fiery orange of Metal Mario, the cool blue of a Vanish Cap, or perhaps a neon pink aesthetic.
But here is the catch: SM64 does not use a standard RGB slider like Photoshop. It uses a proprietary, hex-based color system tied to the game’s limited 15-bit color depth (RGB555). This article explains everything you need to know about generating accurate color codes for SM64, modifying character palettes, and injecting your custom look into the game.
The most common use is creating alternate character skins. The vanilla SM64 ROM stores Mario’s colors in specific memory addresses. By using a color code generator, a modder can:
(0, 255, 0).0xFFE0) and purple (0x780F) codes.If you’ve spent any time in the Super Mario 64 rom-hacking community, you’ve seen them: fire-engine red Mario, ghostly white Luigi, neon-green Wario, or even Mario with a completely custom, RGB-cycled cap. While Super Mario 64 is a masterpiece of game design, its original color palette for the player character is... limited. You get red overalls, a red shirt, and a red cap. That’s it.
Enter the unsung hero of the ROM hacking toolkit: The SM64 Color Code Generator. Sm64 Color Code Generator
This simple, elegant web tool is the gateway to transforming the plumber into any character you can imagine. But what exactly is it, how does it work under the hood, and how can you use it to create your own custom palette? Let’s jump in.
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. Unlocking the Rainbow: The Ultimate Guide to the
Step 4: Interpret the Output The generator will return two likely outputs:
0x4A1018960Step 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.
To understand the Color Code Generator, one must first understand how the Nintendo 64 handled textures. Unlike modern games that rely on high-resolution image files for character skins, Super Mario 64 relied heavily on "vertex coloring." The geometry of Mario’s model—his overalls, his shirt, his gloves, and skin—were painted via hexadecimal color values stored in the game’s memory.
Technically, a "Color Code" is a sequence of addresses and values. In the days of the GameShark, players had to manually input cryptic strings like 8133A514 00FF to change a specific shade of red to a specific shade of green. It was tedious, prone to error, and inaccessible to the average user. Change Mario’s shirt to green (L is real)
The Color Code Generator streamlined this. Created by various community developers over the years (often packaged with emulation tools or GameShark cheat databases), the generator automates the hexadecimal math. It presents a graphical user interface (GUI) with sliders and hex wheels.
You select "Mario's Hat," move a slider to cyan, and the software spits out a ready-to-use code. It democratized character creation, allowing a 12-year-old in 2008 to create their own "recolored persona" in seconds.
Several communities and online forums are dedicated to SM64 modding, where enthusiasts share tools, techniques, and resources, including color code generators. These tools are often created by the community for the community, reflecting the creativity and technical skill of SM64 fans.
So, you have a perfect hex code from your SM64 Color Code Generator. How do you actually make Mario wear it?