Advanced Perceptual Contrast Algorithm
APCA isn’t required by law yet, but it is widely believed to be a more sophisticated tool for colour picking than WCAG 2. This is because it matches more closely how people perceive colours, and takes into account typography weight and styles.