← Games

Game Hub Articles

All articles
Home › Articles
🎨

Colour mixing for pixel art: RGB, hex codes and colour palettes

By Noam · 26 November 2026 · 6 min read

If you've mixed paint, you know blue and yellow make green. On a screen, colours work differently. Understanding how is useful for pixel art, web design and any game you make.

Paint: mixing makes darker

Paint absorbs some light and reflects the rest. The more paints you mix, the more light gets absorbed, and the darker and muddier the colour becomes. This is called subtractive mixing. Printers use cyan, magenta and yellow ink for the same reason.

Screens: mixing makes lighter

A screen gives off light. Each tiny pixel is made of red, green and blue lights, and every colour you see is a mix of those three. The more light you add, the brighter it gets. Red and green light together make yellow, all three at full strength make white, and all three off make black. This is additive mixing, and it's why computers describe colours as RGB.

Hex codes

In web pages and many art tools, colours are written as hex codes like #FF8800. The six characters are three pairs: red, green and blue. Each pair goes from 00 (none) to FF (full), using the numbers 0 to 9 and letters A to F. So:

Once you know this, you can guess a colour just by reading its code.

Choosing colours that work together

Pixel art usually uses a small set of colours, called a palette. A few ideas for choosing one:

Contrast matters

The most important thing in a game sprite isn't colour, it's contrast: light against dark. A character should stand out from the background even if you squint. Try turning your art black and white: if you can still see the shape clearly, the contrast is good.

Try it

Make a sprite in Pixel Paint using just four colours: an outline, a main colour, a shadow and a highlight. For more, read pixel art for beginners.

▶ Open Pixel PaintAll games

More articles

🪩 Pinball tips: how to trap the ball, aim your shots and score moreStop flailing at the flippers. Learn to catch the ball, aim with the flipper, pass it between flippers and use nudges, plus a bit of pinball history.🐍 Snake strategy: how to get a really long snakeHug the walls, sweep in zig-zags and never trap yourself. Simple strategies for the classic Snake game, plus where Snake came from.🎳 Bowling tips and how bowling scoring really worksWhy strikes and spares are worth extra, how a 300 game works, and where to aim to knock down all ten pins.🧱 Brick-breaking games: the story of Breakout and how to clear every levelHow a 1976 arcade game built by two future Apple founders created a whole genre, and how to control the ball's angle to clear bricks faster.🟦 Falling-block puzzle tips: keep your stack flat and clear more linesFlat stacks, a well for the long piece, using Hold and Next, and staying calm at high speed. How to get better at falling-block puzzles like Block Drop.