PNG Hue Changer

Uploads a PNG, converts every pixel from RGB to HSL, rotates its hue by the degree value you choose while preserving saturation and lightness, converts back to RGB, and lets you download the recolored result, all in your browser. A free online tool from Staaarter, right in your browser.

Runs locallyUpdated 2026-07-26

Overview

Introduction

This tool rotates every color in a PNG around the HSL color wheel by a chosen angle, entirely in your browser.

It's the fastest way to recolor a whole flat-design graphic at once, since every hue shifts together while shading stays intact.

What Is PNG Hue Changer?

A client-side hue-rotation tool that converts each pixel from RGB to HSL (hue, saturation, lightness), adds a degree offset to the hue component, and converts back to RGB.

Because saturation and lightness are untouched, shading, highlights, and shadows all stay exactly where they were — only the underlying color identity shifts.

How PNG Hue Changer Works

For every pixel, the tool computes hue, saturation, and lightness from its RGB value using the standard HSL formulas, adds the requested rotation (wrapping around at 360 degrees), and converts the result back to RGB.

Alpha is copied through unchanged since HSL only describes color, not transparency.

When To Use PNG Hue Changer

Use it to generate color variants of a flat icon set, explore alternate color schemes for a design, or shift a brand's primary hue without redrawing anything.

It's also a fast way to preview 'what if this were blue instead of red' across an entire graphic at once.

Features

Advantages

  • Recolors an entire multi-color image in one pass, unlike a single-color find-and-replace.
  • Preserves shading and gradients perfectly since only hue moves.
  • Runs entirely client-side; your image never leaves your device.

Limitations

  • It rotates every hue by the same fixed angle, so it can't recolor one element differently from another in a single pass.
  • Near-grayscale pixels barely change, since they have little saturation for the hue rotation to act on.

Examples

Turn a red icon set blue

Input

A set of red icons, hue rotation 240 degrees

Output

The same icons now blue, with identical shading

Red sits at 0 degrees on the HSL wheel; rotating 240 degrees lands on blue while lightness/saturation are unchanged.

Subtle brand color shift

Input

A logo PNG, hue rotation 15 degrees

Output

The logo with a gentle color shift, still recognizably the same hue family

Small rotations produce a subtle recolor rather than a dramatic color swap.

Best Practices & Notes

Best Practices

  • Use large rotations (90-270 degrees) for dramatic recolors and small ones (10-30 degrees) for subtle variation.
  • If an image looks unexpectedly unchanged, check whether it's mostly grayscale — hue rotation has little effect on desaturated colors.

Developer Notes

The HSL conversion helpers are pure functions with no DOM dependency, operating directly on the Uint8ClampedArray pixel buffer; hue wraps with a double-modulo to stay positive after rotation, and clampByte keeps the converted-back RGB values in range.

PNG Hue Changer Use Cases

  • Generating multiple color variants of a flat icon set from one source file
  • Exploring alternate brand color schemes without redrawing artwork
  • Recoloring a graphic to fit a themed color palette

Common Mistakes

  • Expecting a hue rotation to change a black, white, or gray image — those pixels have no hue to rotate.
  • Using hue rotation when you actually want to change just one specific color; the Colors Changer tool is better suited for that.

Tips

  • Try 180 degrees for a quick complementary-color preview of your artwork.
  • Combine with the Color Tone Changer for effects that shift both hue and warmth together.

References

Frequently Asked Questions