arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2512.05067cs.HCmath.OC
收藏

网页可访问性中的感知最小颜色优化:一种多阶段约束方法

Perceptually-Minimal Color Optimization for Web Accessibility: A Multi-Phase Constrained Approach

Lalitha A R

AI总结:

本文提出了一种多阶段约束优化方法,用于在保持品牌美学的同时生成符合WCAG标准的颜色,通过高效算法实现可访问性与视觉设计的平衡。

摘要:

网页可访问性指南要求文本与背景之间有足够的颜色对比度;然而,手动调整颜色往往需要显著的视觉偏差,从而损害关键的品牌美学。我们提出了一种新颖的多阶段优化方法,用于自动生成符合WCAG标准的颜色,同时最小化对原始设计选择的感知变化。我们的方法将此视为一个受约束的非线性优化问题,利用现代的感知均匀OKLCH颜色空间。关键在于优化被约束以保持颜色的原始色相(H),确保修改仅限于必要的明度(L)和色度(C)调整。这通过二分搜索、梯度下降和逐步约束放松的三阶段序列实现。在包含10,000对程序生成颜色的测试数据集上评估表明,该算法成功解决可访问性违规情况的比例为77.22%,其中88.51%的成功修正显示出不可察觉的颜色差异(ΔE_{2000} < 2.0),如标准可感知性阈值所定义。成功的调整的中位感知变化仅为0.76 ΔE_{2000},并且该算法在每对颜色的中位处理时间仅为0.876毫秒。该方法证明了通过计算高效且感知意识的优化方法,可以同时实现可访问性合规性和视觉设计完整性,同时尊重品牌身份。该算法已公开在开源的cm-colors Python库中。

英文摘要:

Web accessibility guidelines require sufficient color contrast between text and backgrounds; yet, manually adjusting colors often necessitates significant visual deviation, compromising vital brand aesthetics. We present a novel, multi-phase optimization approach for automatically generating WCAG-compliant colors while minimizing perceptual change to original design choices. Our method treats this as a constrained, non-linear optimization problem, utilizing the modern perceptually uniform OKLCH color space. Crucially, the optimization is constrained to preserve the original hue ($\text{H}$) of the color, ensuring that modifications are strictly limited to necessary adjustments in lightness ($\text{L}$) and chroma ($\text{C}$). This is achieved through a three-phase sequence: binary search, gradient descent, and progressive constraint relaxation. Evaluation on a dataset of 10,000 procedurally generated color pairs demonstrates that the algorithm successfully resolves accessibility violations in $77.22\%$ of cases, with $88.51\%$ of successful corrections exhibiting imperceptible color difference ($ΔE_{2000} < 2.0$) as defined by standard perceptibility thresholds. The median perceptual change for successful adjustments is only $0.76\ ΔE_{2000}$, and the algorithm achieves this with a median processing time of $0.876\text{ms}$ per color pair. The approach demonstrates that accessibility compliance and visual design integrity can be achieved simultaneously through a computationally efficient, perceptually-aware optimization that respects brand identity. The algorithm is publicly implemented in the open-source cm-colors Python library.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑