Skip to content

isCieLabAchromatic

isCieLabAchromatic(chroma, chromaThreshold): boolean

Defined in: packages/math-color/src/spaces/lab-d50/is-achromatic.ts:25

Test if a CIE LAB color is achromatic (gray) based on its chroma value and a specified chroma threshold.

number

The chroma value of the CIE LAB color.

number | IsLabAchromaticStrictness

The chroma threshold below which a color is considered achromatic. Colors with chroma less than this value are treated as gray.

boolean

True if the color is achromatic (chroma < chromaThreshold), false otherwise.