What is hue shifting in pixel art?
Hue shifting is changing the hue of a colour, not only its brightness, as it goes from shadow to light: shadows lean towards blue or purple, lights towards yellow or orange. It is a large part of why good pixel art looks rich instead of grey.
Hue shifting, in one picture
The same golem three times, with its crystal ramp under each. On the left the ramp only gets darker and lighter: one blue, five brightnesses. In the middle it shifts a little. On the right it shifts strongly: the shadow steps lean towards indigo, the lights towards a pale aqua, and the crystals look lit rather than painted on.

What it is
The simplest way to shade is to take a base colour and make it darker for shadow and lighter for light. The result works, but it looks flat and a little dirty, because darkening alone drifts towards grey and black.
Hue shifting moves the hue along the ramp as well. A typical ramp for a red cloak goes from a dark, slightly purple red in shadow, through the base red, to a warm orange-red in the light. Each step changes brightness, saturation and hue together.
Why artists do it
- It matches how light behaves. Lit areas take on the colour of the light, which is often warm. Shadows are often filled by bluish sky light.
- It keeps colour alive in shadow. A shadow that shifts hue still reads as coloured, not muddy.
- It ties a palette together. If every ramp shifts the same way, all materials look lit by the same light, and the palette feels like one set.
- It saves colours. Ramps that shift hue can share their darkest or lightest colours, so a small palette covers more materials.
Common mistakes
- Shifting too far. A ramp that runs from purple to yellow no longer reads as one material.
- Shifting the wrong way for the scene. Warm shadows and cold highlights look odd unless the lighting justifies it.
- Keeping saturation flat. Mid tones are usually the most saturated; the darkest and lightest steps often drop a little.
- Shifting each material differently. If the armour shadows go blue and the skin shadows go green, the sprite looks lit by two suns.
How to do it by hand
- Pick a base colour for the material.
- For each step darker, lower brightness, move the hue a few degrees towards your shadow colour (often blue or purple), and adjust saturation.
- For each step lighter, raise brightness and move the hue towards your light colour (often yellow).
- Look at the ramp as a strip. It should read as a smooth curve, not a jump.
- Use the same direction of shift for every material in the scene.
Hue shifting vs plain shading
| Plain shading | Hue shifting | |
|---|---|---|
| Shadow step | the base colour, darker | darker, and a few degrees towards blue or purple |
| Light step | the base colour, lighter | lighter, and a few degrees towards yellow |
| Looks | flat, a little dirty in the shadows | painted, coloured all the way down |
| Palette | one ramp per material, none shared | ramps can share their darkest and lightest colours |
How Pixor does it
Pixor builds a hue-shifted ramp for each material from the model’s own colours, and Hue shift (0° to 30°) sets how far it turns shadows towards blue and lights towards yellow. If you would rather use fixed colours, a built-in palette, a Lospec .hex or GIMP .gpl file, or a palette taken from a picture can replace the automatic one. The picture above is Pixor’s own output with Hue shift at 0°, 9° (the default) and 25°. The ramp step is a node in the Style graph.
Related
- Palette ramps
- Selout: outlines that use ramp colours
- Palettes and the settings manual
Questions
What does hue shifting mean?
Changing the hue of a colour as you make it darker or lighter, instead of only changing its brightness. In a hue-shifted ramp each step is a slightly different colour, typically cooler in the shadows and warmer in the light.
Which way should the hue shift?
A common choice is shadows towards blue or purple and lights towards yellow or orange. The light source decides; a green-lit cave or a red sunset shifts differently.
How much should I shift?
Usually a few degrees per step on the colour wheel. Too much and a material stops looking like one colour.
Is hue shifting only for pixel art?
No. Painters have always done it, and it works in any illustration. Pixel art leans on it more, because with only a few colours per material every step has to do more work.
Why do my shadows look muddy?
They were probably made by darkening alone, or by mixing in black or grey. Lower the brightness, move the hue a little towards your shadow colour and keep some saturation.