The Accessible Perceptual Contrast Algorithm, aka APCA, Contrast Calculator computes Lc, a perceptual contrast value from the Accessible Perceptual Contrast Algorithm, for a pair of text and background colors. The algorithm is being developed as a candidate for the contrast 方法 of future WCAG versions.
与 WCAG 2 对比度不同,APCA 考虑了文本的极性、大小和粗细。浅色文本在深色背景上与深色文本在深色背景上呈现不同的对比度值,这更符合人眼阅读文本的习惯。
Designers use it to judge the readability of an interface beyond a pass or fail threshold. 可用性 and accessibility specialists use it to check difficult cases such as dark themes and thin fonts, where the WCAG 2 ratio is known to mislead.























