Claude Game Studio

Pixel art palette

This pixel art palette tool gives you ready palettes, builds hue-shifted color ramps, pulls a palette out of any image, and exports a PNG swatch, .hex, .gpl or JavaScript array, or opens the colors in the pixel art maker.

Ready palettes

Sweetie 16

16 of 32 colors

RGB 26 28 44

GrafxKid, CC0. The palette the pixel art maker opens with.

Export

Open in the pixel art maker

Build a ramp

Pull colors from an image

Sweetie 16 is loaded. Pick another palette, build a ramp, or drop an image to pull its colors.

const palette = ["#1a1c2c", "#5d275d", "#b13e53", "#ef7d57", "#ffcd75", "#a7f070", "#38b764", "#257179", "#29366f", "#3b5dc9", "#41a6f6", "#73eff7", "#f4f4f4", "#94b0c2", "#566c86", "#333c57"];

How a ramp is built

25° hue shift: #1a3c34, #277c56, #38b764, #6fcd7c, #b2d8b0. The darkest color sits at 166°, a blue-green, and the lightest at 117°, a yellow-green.
No shift: #1a3c26, #277c44, #38b764, #6fcd8f, #b0d8be. The hue stays between 140° and 141° and only the lightness changes.

Both ramps start from #38b764 with 5 colors and the default spread.

Shadows cool, lights warm

The tool moves each shade toward blue-violet (250°) below the base and toward yellow (55°) above it, never past the shift you set, and pulls the saturation down a little at both ends. Add one ramp for each material in the picture: skin, leaves, stone, metal.

Colors from an image

The image is shrunk to 256 pixels on its long side, then the tool repeatedly splits the group of pixels with the widest color range at a change of value and averages each group, ignoring transparent pixels. Flat colors survive exactly: three in, the same three out. The redrawn preview gives each pixel its nearest palette color, without dithering.

The ready palettes

Use the colors in a game

Copy array, under the tool, gives the current palette as a plain JavaScript array that any starter can import. To have Claude Code hold a game to the palette, paste a prompt like this one in a session that has the starters installed. The same colors open in the pixel art maker through the button above, and the sprite you draw can go on to the sprite animation maker.

Read palette.js and use its colors as the only colors in this game's art. Replace every hard-coded color in the starter with the nearest one from the array, run the game, and check that nothing is drawn in a color outside the palette.

Other places to find palettes

The Lospec Palette List is a database of pixel art palettes, both from old hardware and from pixel artists, and each palette downloads as PNG, PAL, ASE, TXT, GPL or HEX.

Phaser's Palette Tool is a searchable library of hundreds of palettes, filtered by name, source, color count or hue, with a credit on each. This page builds ramps, pulls colors from your own art, and sends the result into the editor.

Questions

How do I make a pixel art palette?

Start from a ready palette or one color, then build ramps: pick a base color, choose how many shades and how far to shift the hue, and press Add to palette. Repeat for each material, then sort by lightness and export. Fewer colors with clear jumps between them read better at 16 or 32 pixels than many close shades.

How many colors should a pixel art palette have?

Between 4 and 32 for most games. Four gives a one-screen handheld look, 16 is the common size and what the pixel art maker opens with, and 32 leaves room for several ramps. The Moonlit Ridge game made with the kit names 23 palette colors in its config. This tool holds up to 32.

What is hue shifting in a color ramp?

Hue shifting turns the shadows toward a cool hue such as blue-violet and the highlights toward a warm one such as yellow, instead of only making the color darker or lighter. A green ramp with a 25 degree shift goes from a blue-green shadow to a yellow-green highlight, which keeps shaded areas from looking gray.

How do I get a palette from an image?

Drop the image on the tool and set how many colors to keep, from 2 to 32. It groups similar pixels with median cut and takes the average of each group, ignores transparent pixels, and shows your image redrawn with only those colors so you can judge it before you export.

Which file formats can I export?

A PNG swatch with one 32 pixel square per color, a .hex file with one six-digit color per line, a .gpl file in the GIMP palette format, and a JavaScript array of hex strings. Open in the pixel art maker sends the colors straight into the editor.

Put your assets into a playable game. Try the ten game templates or get the kit.