Add Color Helpers to your project:
npm install @csstools/color-helpers --save-dev
This package exists to join all the different color functions scattered among the Colors 4 and Colors 5 plugins we maintain such as:
This software or document includes material copied from or derived from https://github.com/w3c/csswg-drafts/tree/main/css-color-4. Copyright © 2022 W3C® (MIT, ERCIM, Keio, Beihang).