transparentize($color, $amount) decreases a legacy color’s alpha by a fixed amount between 0 and 1 (inclusive) and returns a new color. It is a global built-in — there is nocolor.transparentize(). Official docs list it as an alias of fade-out().
Examples use deprecated global transparentize() / fade-out() plus modern scale / adjust. Open View Compiled CSS for verified output (matches official Sass docs samples).
Example 1 — Alpha 0.5 → 0.3 (Official Docs)
A semi-transparent slate becomes softer by a fixed 0.2 alpha.
Fixed alpha subtract on legacy colors — alias of fade-out().
Prefer color.scale with a negative $alpha percent for relative transparency.
Use color.adjust with $alpha: -$amount only when matching old pixels.
No module form — deprecated globals will warn toward Sass 3.0.
One line: treat transparentize as legacy — new fades should use color.scale(..., $alpha: -$percent).
Practice
Migrate Notes
Practical checklist:
checklist.txt
1. Find transparentize() / fade-out() globals
2. Prefer color.scale($c, $alpha: -$percent) for relative fades
3. Use color.adjust($c, $alpha: -$amount) only to match old math
4. Remember $amount is 0–1, not a CSS percent
5. Watch low-alpha + large amount → fully transparent
Frequently Asked Questions
transparentize($color, $amount) decreases a legacy color’s alpha by $amount (0–1). Example: transparentize(rgba(#6b717f, 0.5), 0.2) is rgba(107, 113, 127, 0.3); transparentize(rgba(#036, 0.3), 0.3) is fully transparent rgba(0, 51, 102, 0).
Yes. Official Sass docs list transparentize($color, $amount) and fade-out($color, $amount) as aliases that return the same color.
Yes. Official Sass docs list it under Deprecated Functions and omit it from the sass:color module. Prefer color.scale() for relative transparency, or color.adjust($color, $alpha: -$amount) to keep the old math.
Because transparentize() is usually not the best way to make a color more transparent, it is not included in the new module system. Use color.scale or color.adjust instead.
transparentize subtracts a fixed alpha amount (0.3 − 0.3 becomes fully transparent). color.scale($c, $alpha: -30%) makes the color 30% more transparent than it was, which is usually what designers want.
For the same fixed subtraction: color.adjust($color, $alpha: -$amount). For better relative transparency: color.scale($color, $alpha: -$percent). fade-out() migrates the same way.