Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private getNeutralPallete(colorSource: string): string[] {
const color: ColorRGBA64 = parseColor(colorSource);
const hslColor: ColorHSL = rgbToHSL(color);
const augmentedHSLColor: ColorHSL = ColorHSL.fromObject({
h: hslColor.h,
s: hslColor.s,
l: 0.5,
});
return createColorPalette(hslToRGB(augmentedHSLColor));
}