Skip to content

oklabIsAchromatic

oklabIsAchromatic(chroma, chromaThreshold): boolean

Defined in: packages/math-color/src/spaces/oklab/is-achromatic.ts:26

Test if an OKLab chroma value is achromatic (gray) based on a specified chroma threshold.

number

The chroma value of the OKLab 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.