Hue Shifter

Shift the hue of a color or an image. Type a HEX, RGB, or HSL value or drop a file, set the angle, then copy the result or download it.

HEX, rgb(59, 130, 246), or hsl(217, 91%, 60%)

Original
#3B82F6 · Hue 217°
Shifted (+30°)
#513BF6 · Hue 247°

Drag the dot on the wheel to set the shift.

°
−180°0°+180°

Values past 180° wrap around the wheel, so 270° is the same as −90°.

Quick angles

+30° gives an analogous color, a neighbor of the original on the wheel.

Turns the hue in HSL. Saturation and lightness stay the same.

Result
HEX
#513BF6
RGB
rgb(81, 59, 246)
HSL
hsl(247, 91%, 60%)

Shift hue without touching saturation or lightness

Hue is the part of a color that names it: red, orange, yellow, green, blue, purple. A hue shift turns a color around the color wheel by a set number of degrees. This hue shifter works on a single color or on a whole image, and the result updates as you move the slider.

Change the hue of a color

Type or paste a HEX, RGB, or HSL value, or pick one with the color picker. Then move the slider, drag the dot on the color wheel, or tap a quick angle. The tool shows the original and the shifted color side by side with their hue angles, and you copy the result as HEX, RGB, or HSL.

  • Shifts run from -180° to +180°. A larger number wraps around the wheel.
  • With the HSL method, saturation and lightness stay the same, so the new color has the same strength and brightness.
  • Gray, black, and white have no hue, so they do not change.

Change the hue of an image

Switch to Image, then drop a file or choose one. Every pixel turns by the same angle, so a blue sky can become green or orange while the picture keeps its detail. Transparent areas of a PNG stay transparent.

  • Works with PNG, JPG, WebP, AVIF, and BMP files.
  • The whole image changes. To recolor one object only, select it in an image editor first.
  • Nothing is uploaded. The work happens in your browser.

Pick an angle by the color relationship you want

Some angles give classic color pairs. Use them as a starting point, then adjust by a few degrees until the result fits your design.

ShiftRelationshipResult
30°AnalogousA neighbor next to the original
90°SquareA partner at a right angle
120°TriadicOne of two evenly spaced partners
150°Split complementaryA color beside the complement
180°ComplementaryThe opposite color

HSL shift or CSS hue-rotate()

The default method turns the hue in HSL, so lightness is kept. The CSS hue-rotate() filter works differently. It multiplies the RGB values by a fixed matrix, and a color can get much darker or lighter after the turn. Pure red turned by 60° becomes yellow with the HSL method and a dark brown with the CSS method. Choose the CSS method when the result must match a filter in a stylesheet, and the HSL method when you want to keep the lightness.

  • With the CSS method on, copy filter: hue-rotate(30deg); straight into your CSS.
  • Compare both methods on the same color before you decide.

Where a small hue shift helps

Designers and artists use hue shifts for more than recoloring. A shift of 5 to 15 degrees keeps a color in its family and still adds some variety.

  • Painters and pixel artists move shadows toward one hue and highlights toward another so shading looks less flat.
  • UI designers test accent colors by turning a brand color by 30 degrees.
  • Game and product artists recolor a sprite or a photo without redrawing it.

How the hue shifter works

How the hue shift is calculated

The tool converts the color to HSL (hue, saturation, lightness), adds your angle to the hue, and converts the result back to RGB. Saturation and lightness are not touched. A shift of 0° or 360° returns the exact color you entered.

How images are processed

The image is drawn onto a canvas in your browser, and the same calculation runs on every pixel. The alpha channel is left alone, so transparent areas stay transparent. The preview is a smaller copy so the slider stays quick. The download is built from the full image.

Two methods

  • HSL: turns the hue and keeps saturation and lightness. This is the default.
  • CSS hue-rotate(): applies the color matrix used by the CSS filter of the same name. Use it when the result must match a stylesheet.

Everything runs locally. No color or image is uploaded.

How to shift the hue of a color or image

1

Add a color or an image

Type or paste a HEX, RGB, or HSL value, or switch to Image and drop a file.

2

Set the shift

Move the slider, drag the dot on the wheel, or tap a quick angle.

3

Copy or download

Copy HEX, RGB, or HSL, or download the shifted image as PNG or JPG.

Example Usage

A 180° shift turns this blue into its complementary orange.

Input
Color: #3B82F6 | Shift: +180° | Method: HSL
Output
#F6AF3B

Frequently Asked Questions

What is a hue shift?
A hue shift turns a color around the color wheel by a number of degrees. A shift of 60° turns red into yellow, and 120° turns it into green. The strength and brightness of the color stay the same. Only the hue moves.
How do I change the hue of a color?
Enter the color as HEX, RGB, or HSL, then set the shift with the slider, the number box, or the color wheel. The shifted color appears at once. Copy it as HEX, RGB, or HSL.
How do I change the hue of an image online?
Select Image, drop a PNG, JPG, WebP, AVIF, or BMP file, and move the slider. Compare the original with the preview, then download the result as PNG or JPG. The file never leaves your device.
What does a 180 degree hue rotation do?
It gives the complementary color, the one directly opposite on the color wheel. A sky blue turns orange and a leaf green turns purple. In an image, every hue swaps to its opposite.
How is this different from CSS hue-rotate()?
The default method turns the hue in HSL and keeps the lightness. The CSS hue-rotate() filter applies a color matrix to the RGB values, so brightness can change and a 180° turn does not always give the exact complement. Pure red turned by 60° gives yellow with the HSL method and a dark brown with the CSS method. Select the CSS method to get the same result as the browser filter.
Does a hue shift change saturation or lightness?
Not with the default method. The HSL saturation and lightness values stay the same, and only the hue angle moves. With the CSS method, the brightness of a color can change a lot.
Why does my black, white, or gray color not change?
These colors have no saturation, so they have no hue to turn. Any shift gives the same color back. Colors with very little tint change only a little.
Can I shift the hue of one object in a photo?
No. The tool turns the hue of every pixel by the same angle. To change one object, select it in an image editor and apply a hue shift to that selection.
Can I shift the hue of a GIF?
Animated GIFs are not supported. You can save a single frame as PNG and shift the hue of that file.
What angle should I use?
Use 5 to 15 degrees for shading and small variations, 30 degrees for neighboring colors, and 120 or 180 degrees for strong contrast. The quick angle buttons show the result on the color you entered.
Is my color or image uploaded?
No. The tool runs in your browser. Colors and images are not sent to a server.
Why is the downloaded image smaller than my original?
Images with a side longer than 4096 pixels are scaled down so the browser does not run out of memory. The tool shows the final size before you download.

Related Tools

Comments

Comments are provided by Disqus, which sets cookies and processes data under its own privacy policy.

The Hue Shifter is maintained by CodeItBro. We aim to provide the best free developer tools on the web. If you have feedback or suggestions, please visit our contact page.

As featured on

CodeItBro - Free dev tools + practical guides to help you ship faster | Product HuntCodeItBro - Free Online Developer Tools badgeCodeItBro badge