Color · Made a little simpler

Color Lightener and Darkener

Make an sRGB color lighter or darker in HSL or OKLCH. Keep alpha, preview text on an opaque background and export CSS color variables.

Free to useNo account neededProcessed on your device
Your workspaceProcessed on your device

#6699CC80

Original color

Sample text
HEX
#33669980
Contrast on background
2.19:1

Adjusted color

Sample text
HEX
#6699CC80
Contrast on background
1.66:1
Original coordinates
hsl(210 50% 40% / 0.5019607843137255)
Requested coordinates
hsl(210 50% 60% / 0.5019607843137255)

Add this tool to your website

Paste this code into your page to add the tool and a visible ToolMellow credit link.

HTML embed code
Preview embed

Color Lightener and Darkener: how to use it

  1. Enter a HEX, named, RGB or HSL base color and choose an opaque preview background.
  2. Choose HSL or OKLCH. Use the adjustment slider or enter a signed number of lightness points.
  3. Compare the before and after swatches and their contrast on the background. Copy or download the CSS variables.

Limits and notes

Input colors use sRGB. Lightness is bounded from 0 to 100%. Output is rounded to 8-bit sRGB channels and preserves the parsed alpha. OKLCH reduces chroma when necessary to produce an sRGB result.

How your privacy works →

Color Lightener and Darkener: common questions

Does adding 20 lightness points multiply the original lightness?

It adds 20 percentage points. In HSL, 40% becomes 60%. The adjusted lightness stops at 0% or 100%.

Why do HSL and OKLCH produce different colors at the same adjustment?

HSL uses sRGB channel extremes to define lightness. OKLCH uses the lightness coordinate from Oklab. Those scales respond differently when you move either coordinate by 20 points.

How is contrast measured for a translucent color?

The preview composites the color over the chosen opaque background. The contrast ratio compares that composited foreground with the background.

Guides