EN
My tools

Lighten or Darken Color

Lighten, darken, saturate, desaturate or gray out any color by a percentage, the Sass way, by mixing with white or black, or in OKLCH. Get HEX, CSS and Sass.

My tools →
Advertisement

Making a color "20% lighter" sounds simple, but tools mean different things by it. Sass lighten() adds 20 points of HSL lightness, color.scale() moves 20% of the way to white lightness, a tint mixes in 20% white, and OKLCH changes the lightness people actually perceive. This tool does all four for lighten, darken, saturate, desaturate and grayscale, shows the result as HEX, RGB, HSL and OKLCH, gives matching Sass and modern CSS code, and lists every 10% step.

How to use this tool

  1. Enter a color in any CSS format.
  2. Choose lighter, darker, more or less saturated, or grayer, and the amount.
  3. Pick the method that matches your code base: Sass HSL, Sass scale, a white/black mix or OKLCH.
  4. Copy the HEX, the CSS (a HEX fallback plus a relative-color or color-mix() line) or the Sass call.

Formula

HSL add: L′ = L + a · HSL scale: L′ = L + (100 − L) × a · mix: c′ = c + (t − c) × a · OKLCH: L′ = L + a, C′ = C × (1 ± a) · luma: Y′ = 0.2126 R + 0.7152 G + 0.0722 B

a is the amount (as points for HSL add, as a fraction otherwise), c each RGB channel and t the white, black or gray being mixed in. Darken and desaturate use the matching subtraction. Grayscale by mixing uses the Rec. 709 luma gray, with the weights of CSS filter: grayscale(). An OKLCH result outside sRGB loses chroma, and the CSS line then gives that fitted color.

Example

Sass lighten(#6b717f, 20%) raises HSL lightness from 45.9% to 65.9%, giving #A1A5AF; darken(#b37399, 20%) gives #7C4465. Mixing #3366CC with 20% white instead gives #5C85D6 (51 + 204 × 0.2 = 91.8 → 92, and so on) — a softer step than lighten() at the same percentage. The luma gray of #3366CC is 0.2126 × 51 + 0.7152 × 102 + 0.0722 × 204 = 98.5, so its grayscale mix is #636363.

Frequently asked questions

Why do Sass lighten() and a tint give different results?

lighten() works in HSL and keeps the hue and saturation, so colors can turn very bright and saturated; a tint mixes in white, which also washes the color out.

Why do yellow and blue look so different after the same lighten?

HSL lightness is not perceived lightness: HSL yellow at 50% looks much brighter than blue at 50%. The OKLCH method uses perceptual lightness, so the same amount looks like the same step for every hue.

Can CSS lighten a color without a preprocessor?

Yes. color-mix(in srgb, #3366cc, white 20%) and relative colors such as hsl(from #3366cc h s min(l + 20, 100)) work in current browsers; the HEX line is the fallback for older ones.

Sources

Last updated:

Cite or embed this tool
APA

kakaoCalc. (2026, November 8). Lighten or Darken Color. https://kakao.mobile/tools/color-lightener/

MLA

“Lighten or Darken Color.” kakaoCalc, 8 Nov. 2026, kakao.mobile/tools/color-lightener/.

Paste this code into your page. The widget runs in your visitors' browsers, shows no ads and keeps a link back to this page. Embedding terms

Advertisement