@pbroom/color-kitContrast

ContrastApcaPolarity

Which sign of APCA Lc passes a contrast region:

typeimport type { ContrastApcaPolarity } from '@pbroom/color-kit';types.ts:22
type ContrastApcaPolarity = 'absolute' | 'positive' | 'negative';
  • 'absolute': |Lc| >= threshold (either polarity).
  • 'positive': Lc >= threshold (dark text on a light background).
  • 'negative': Lc <= -threshold (light text on a dark background).