Try lighter and darker variants of a translucent blue
Admin ·
An adjustment to a color’s lightness can look different across color models. Compare the result both as a color value and as text on the background where you intend to use it.
Move the same HSL color 20 points in both directions
Select Load example. The base is #33669980 and the preview background is white. The original HSL lightness is 40%. The initial adjustment is +20, so the requested HSL lightness is 60% and the adjusted HEX is #6699CC80.
Enter −20 in Adjustment (points). The requested lightness moves to 20% and the adjusted HEX is #1A334D80. Both results retain the 80 alpha suffix from the original.
Compare HSL and OKLCH with the same slider value
Return Adjustment (points) to 20 and select OKLCH. The result is #6EA3DA80. The request raises the original OKLCH lightness from about 49.93% to 69.93%. The hue and chroma request stay fixed.
Set Adjustment (points) to 60. The request reaches 100% lightness and the displayed sRGB color is white with the original alpha. The readout shows the reduced chroma needed at that boundary.
CSS Color Level 4 — Oklab and OKLCHBjörn Ottosson — A perceptual color space for image processing
Recheck the exported color on the intended background
With the default HSL adjustment, the original contrast on white is 2.19:1 and the lighter color is 1.66:1. The preview composites the translucent color over white for both ratios.
Download color-lightness.css and use the adjusted color variable on the same background. If the background changes, update Preview background and review the new contrast before reusing the value.
Common questions
How do I return to the exact base color?
Select Reset adjustment. The preview uses the parsed base color with its original alpha.
What values does the downloaded CSS contain?
It defines original-color and adjusted-color custom properties with 8-bit sRGB channels. A translucent input includes alpha in both declarations.
Can the background itself be transparent?
Use an opaque preview background. The ratio compares the displayed foreground with one known background color.