Color Lightness / Darkness Adjuster
Lighten or darken a colour by percentage points of HSL lightness, clamped at white and black.
What this page computes
Pick a colour and type a change in percentage points. The page converts to HSL, adds the change to the lightness channel and converts back, so a base at 40% lightness with +20 reads 60% and prints #6699cc. The change is a sum on the scale, not a multiplier: +20 on 40% is 60%, while a 20% multiplier would give 48% and surprise anyone checking the arithmetic.
Where it stops
The result is clamped at white and at black, and the clamp is printed as a third line when it happens, because a lightness of 130% does not exist and silently truncating it would look like the requested change was applied. A change beyond ±100 points is refused as outside the scale. Saturation is untouched, so a very light result can look washed out; that is the model, not an error.
The conversion runs in this tab. Nothing is uploaded, nothing is stored, and the same colour and change always print the same hex code.
`#336699` at 40% lightness with +20 prints `#6699cc` at 60%: the change is percentage points added to the HSL lightness, not a multiplier.
The result is clamped at white and black, and the clamp is printed as a third line when it happens.
How to use it
Pick a colour and type the change: a positive number lightens, a negative one darkens. The second line shows the arithmetic on the lightness scale rather than a ratio.
The arithmetic
The colour becomes HSL, the change is added to the lightness channel, and the triple is converted back to RGB with hue and saturation untouched. Writing the change as points means +20 on 40% is 60%, not 48%.
Where it stops
Lightness cannot leave 0–100%, so an overshoot is clamped and reported. Saturation is not reduced as the colour approaches white, so a light result can look chalky; that is a property of the model, not a defect in the sum.
What to Expect
Best for
- `#336699` at 40% lightness with +20 prints `#6699cc` at 60%: the change is percentage points added to the HSL lightness, not a multiplier.
- 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, +20
Sample output
#6699cc base #336699 lightness 40% + 20% → 60%
Frequently asked questions
How do I use it?
Pick a colour, type a change in percentage points and press Run. The new hex code is printed, then the old and new lightness, then a clamp note if the scale was reached.
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?
A change beyond ±100 points is refused, because the scale has no room for it. A result past 100% or below 0% must be clamped at white or black and the clamp must be stated, not hidden.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.