面向网页可访问性的上下文自适应色彩优化:在感知保真度与功能性需求之间平衡
Context-Adaptive Color Optimization for Web Accessibility: Balancing Perceptual Fidelity and Functional Requirements
AI总结:
本文提出上下文自适应色彩优化方法,通过递归优化和回退模式提升网页颜色可访问性,同时保持品牌颜色一致性。
摘要:
我们扩展了基于OKLCH的可访问性优化,引入了上下文自适应约束策略,以在多样化的使用场景中实现接近通用的成功率。我们的原始严格算法通过优先考虑最小的感知变化(ΔE ≤ 5.0)在企业环境中实现了66-77%的成功率。然而,这种一刀切的方法无法服务于更广泛的网页开发者群体,他们需要在严格感知约束无法满足时仍能获得可访问的解决方案。我们引入了递归优化(Mode~1),通过在迭代中累积微小调整,在所有颜色配对上实现了93.68%的成功率,在对比度比ρ> 2.0的合理配对上实现了100%的成功率,这代表了+27.23个百分点的提升。一个放松的回退模式(Mode~2)处理病理边缘情况,达到了98.73%的整体成功率。在10,000个现实的网页颜色配对上的评估表明,结合上下文感知的约束放松与绝对色相保持,能够在保持品牌颜色身份的同时实现实用的可访问性合规。所有模式中,中位数的感知变化保持为零(大多数配对已经合规),而90百分位数达到ΔE_{2000}=15.55(在Mode~1中)——当色相不变性保持原始颜色的本质特征时,这在感知上是可接受的。该方法已部署在CM-Colors v0.5.0中(800+每月下载),为开发者提供了明确控制其上下文相关的可访问性-保真度权衡的选项。
英文摘要:
We extend our OKLCH-based accessibility optimization with context-adaptive constraint strategies that achieve near-universal success rates across diverse use cases. Our original strict algorithm reached 66-77% success by prioritizing minimal perceptual change ($ΔE \leq 5.0$), optimizing for enterprise contexts where brand fidelity is paramount. However, this one-size-fits-all approach fails to serve the broader ecosystem of web developers who need accessible solutions even when strict perceptual constraints cannot be satisfied. We introduce recursive optimization (Mode~1) that compounds small adjustments across iterations, achieving 93.68% success on all color pairs and 100% success on reasonable pairs (contrast ratio $ρ> 2.0$), representing a +27.23 percentage point improvement. A relaxed fallback mode (Mode~2) handles pathological edge cases, reaching 98.73% overall success. Evaluation on 10,000 realistic web color pairs demonstrates that context-aware constraint relaxation, combined with absolute hue preservation, enables practical accessibility compliance while maintaining brand color identity. The median perceptual change remains zero across all modes (most pairs already comply), while the 90th percentile reaches $ΔE_{2000} = 15.55$ in Mode~1 -- perceptually acceptable when hue invariance preserves the essential character of the original color. The approach is deployed in CM-Colors v0.5.0 (800+ monthly downloads), providing developers with explicit control over the accessibility-fidelity trade-off appropriate to their context.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。