Color Hue Shifter screenshot

Color Hue Shifter

Rotate a colour's hue by the degrees you choose, −360 to 360, and print the resulting hex code.

Privacy First
0 Runs
Updated 2026-11-06
No upload
Instant
No signup

What this page computes

Pick a colour and type a hue shift in degrees. The page converts the colour to HSL, adds the shift to the hue, wraps the result into 0–360° and converts back to a hex code, leaving saturation and lightness exactly as they were. #336699 shifted by +30° goes from hue 210° to 240° and prints #333399. The second line restates the arithmetic with both hues.

Where it stops

A shift larger than one full turn is refused rather than wrapped silently, because +400° and +40° are the same rotation and the page should not decide which one you meant. Shifting the hue in HSL does not preserve perceived brightness: a move toward yellow looks lighter than a move toward blue at the same lightness number, and no gamut mapping is applied.

The conversion is arithmetic in this tab. Nothing is uploaded, nothing is stored, and the same colour and shift always print the same hex code.

`#336699` shifted by +30° goes from hue 210° to 240° and prints `#333399`, with saturation and lightness untouched. The shift wraps at 360°, so +330° and −30° are the same rotation.

A shift beyond one turn is refused rather than wrapped silently, and an HSL hue change does not preserve perceived brightness.

How to use it

Pick a colour and type the degrees. A positive number moves toward the next hue, a negative one back; the printed line restates both hues so the arithmetic is checkable.

The arithmetic

The colour is converted to HSL, the shift is added to the hue, the sum is wrapped into 0–360° with a modulo, and the triple is converted back to RGB. Rounding happens once, when the channels are written.

Where it stops

Beyond ±360° the page refuses, since the answer would be identical to a smaller shift. Saturation and lightness never move, so a hue heading toward yellow looks lighter without the numbers saying so.

What to Expect

Best for

  • `#336699` shifted by +30° goes from hue 210° to 240° and prints `#333399`, with saturation and lightness untouched.
  • Seeing the result before copying it.

What this tool keeps

  • The colour you pick is converted in the browser and never posted, so the page works offline and retains nothing.

Sample input

#336699 shifted +30°

Sample output

#333399 base #336699 at hue 210° shifted by +30° → 240°

Frequently asked questions

How do I use it?

Pick a colour, type a shift in degrees between −360 and 360, then press Run. The new hex code is printed with the old hue, the shift and the new hue on the second line.

Is anything uploaded?

No. The colour is converted in this tab with JavaScript: no request is made, no account is needed, nothing is stored, and the page keeps working offline once loaded.

What are its limits?

The shift must stay within one full turn, because a larger number would need the page to guess which rotation you meant. The model is HSL, so the result must not be read as equally bright as the original.

Developer program

Build custom tools for your store

Join the SDK program to create useful ecommerce utilities for your store.