Code Generator ((install)) | Sm64 Color
Sm64 Color Code Generator
Enter a color value (R, G, B) to generate a SM64 color code:
R: Red value (0-255) G: Green value (0-255) B: Blue value (0-255)
Example: R=255, G=128, B=0
Use the following format: R,G,B
Type a color value (e.g., 255,128,0) to generate a SM64 color code!
Waiting for your input...
Your input:
Generated SM64 color code:
(I'll wait for your input)
Tips for best-looking colors in SM64
- Slightly lower saturation before converting—highly saturated colors quantize poorly.
- Adjust luminance separately from hue; the N64’s rendering can wash out highlights.
- Use palette steps rather than single unique colors for gradients; this reduces banding.
- Compare in an emulator with similar display settings (gamma, CRT filter) to your target platform.
Beyond Mario: Creative Uses
While "SM64 Color Code Generator" is named after Mario, the output works for nearly any color in Super Mario 64:
- Changing Yoshi’s color in the "Yoshi's Island" skybox.
- Recoloring Koopa shells to look like Troopas from other games.
- Editing HUD text colors (the timer, star count, etc.).
- Customizing Power-ups – imagine a blue Fire Flower or a green Metal Cap.
Some advanced ROM hacks even use dynamic color generation to have Mario change colors based on his health or environment.
Real SM64 Color Code Examples (No Generator Needed)
| Color Name | 8-bit RGB | 5-bit RGB (R,G,B) | SM64 Hex Code | | :--- | :--- | :--- | :--- | | Mario Red | (255, 0, 0) | (31, 0, 0) | 0x7C00 | | Luigi Green | (0, 255, 0) | (0, 31, 0) | 0x03E0 | | Wario Yellow | (255, 255, 0) | (31, 31, 0) | 0x7FE0 | | Metal Mario (Silver) | (192, 192, 192) | (24, 24, 24) | 0x6318 | | Vanish Cap (Cyan) | (0, 255, 255) | (0, 31, 31) | 0x03FF | Sm64 Color Code Generator
A good generator automates this math and displays the 4-character hex string you need to paste into your ROM editor.
The Formula
To convert 8-bit RGB to 5-bit RGB:
- Take your desired 8-bit value (0-255).
- Divide it by 8.
- Round to the nearest whole number (this is your 5-bit value).
Example: You want a vibrant green: RGB(0, 255, 0).
- Red:
0 / 8 = 0 - Green:
255 / 8 = 31.875(Round to 32? No—max is 31. So, it caps at 31). - Blue:
0 / 8 = 0