🅰

Base color in hsl(h,s%,l%) format: *

🅱

Type a value, then press compute.

1️⃣ Shift base color by this percentage:

2️⃣ or a target hue in hsl(h,s%,l%) format:


----------------------------------------------------------




Modulate is an ImageMagick command that can shift the hue of a given color by the provided percentage. More info here. To understand how 'hue shift' works, imagine a colorwheel where:

A = original color, used as a base for the computations
B = new color, as shifted from A by 𝒏 percent




A


B

ImageMagick takes the base color and assigns it a value of 100%. It then works out the % values of the other colors :

Now, when a user provides a percentage, ImageMagick simply returns the color associated with that % value.