Because color.saturation() is redundant with color.channel(), migrate readers to the channel API in new code. Do not confuse this reader with the deprecated writer saturate().
Reads HSL saturation as a percent from 0% to 100%.
Deprecated in favor of color.channel($c, "saturation").
Siblings:color.hue() and color.lightness().
Writers use scale/adjust — not this reader (and avoid new saturate()).
One line: use color.saturation to understand old HSL reads — write new ones with color.channel.
Migrate
Migrate Notes
Practical checklist:
migrate.txt
1. Find color.saturation($c) / saturation($c) in legacy SCSS
2. Require Dart Sass 1.79+ for color.channel
3. Replace with color.channel($c, "saturation")
4. Add $space: hsl when reading non-legacy colors
5. Use scale/adjust when you need to write saturation
Frequently Asked Questions
color.saturation($color) returns the HSL saturation of a legacy color as a number between 0% and 100%. Example: color.saturation(#e1d7d2) is 20%; color.saturation(#f2ece4) is 35%; color.saturation(#dadbdf) is about 7.25%.
Yes. Official Sass docs list it under Deprecated Functions and say it is no longer recommended because it is redundant with color.channel($color, "saturation").
A number from 0% to 100% (with the % unit). It is still a Sass number—meta.type-of reports number.
Official docs require a legacy color space (rgb, hsl, or hwb). Convert first, or use color.channel($color, "saturation", $space: hsl) on Dart Sass 1.79+.
color.hue(), color.saturation(), and color.lightness() are sibling deprecated readers for the three HSL channels. Prefer color.channel with "hue", "saturation", or "lightness" in new code.
color.saturation() only reads the saturation percent. saturate() is a separate deprecated global that increases saturation and returns a new color. Prefer color.channel to read and color.scale / color.adjust to change.
Replace color.saturation($color) with color.channel($color, "saturation") after @use "sass:color" on Dart Sass 1.79+. Keep color.saturation only when maintaining older compilers or legacy SCSS.