Introduction
Digital accessibility is a critical requirement for inclusive software design, yet it remains a significant challenge in the mobile app ecosystem. Approximately 15% of the global population lives with some form of visual impairment. For these users, poor color contrast—where text or functional icons blend into the background—renders applications difficult or impossible to use. While automated detection tools have matured, the repair of these issues remains largely manual. This paper presents Iris, an automated framework designed to fix color-related accessibility issues while preserving the aesthetic integrity and brand identity of Android applications.
The Challenge: Accessibility vs. Aesthetics
The primary barrier to automated accessibility repair is "design consistency." Existing automated approaches often prioritize contrast ratios at the expense of visual harmony, frequently resulting in jarring color schemes that developers are unwilling to adopt. To be practical, a repair tool must be context-aware, ensuring that suggested fixes meet Web Content Accessibility Guidelines (WCAG) standards while remaining "faithful" to the original design intent.
The Iris Framework
Iris addresses the repair challenge through a three-phase process that combines empirical design data with color theory.
1. Reference Database Construction
To understand what constitutes "good" design, the researchers curated a massive reference database by analyzing 9,978 real-world Android apps (sourced from F-Droid and Google Play). By extracting successful color pairs from professionally designed applications, Iris can suggest combinations that have already been "vetted" by the design community, rather than relying on purely mathematical contrast adjustments.
2. Context-Aware Color Selection
Iris utilizes the HSV (Hue, Saturation, Value) color model and harmonic color theory to select replacement colors. The tool identifies an app's "harmonic type" based on eight standard templates. When a contrast issue is detected, Iris adjusts the brightness (Value) of the problematic element while maintaining its original Hue and Saturation as much as possible. This ensures the new color remains within the app's existing palette.
3. Attribute-to-Repair Localization
Locating the source of a color in an Android project is complex. Iris employs static data-flow analysis to trace UI elements back to their definitions in XML layout files, style resources, or hardcoded values in Java/Kotlin source code. Crucially, Iris distinguishes between functional images (e.g., navigation arrows) and ornamental images (e.g., decorative backgrounds), only applying repairs to elements essential for user interaction to avoid distorting artistic content.
Evaluation and Results
The effectiveness of Iris was evaluated using a dataset of 100 Android apps (50 open-source and 50 closed-source) and a user study involving 32 participants.
Performance Metrics
Iris achieved an overall repair success rate of 91.38%, with a specific success rate of 93.6% for text-based contrast issues. The tool is highly efficient, with an average repair time of 2.27 minutes per app, representing a significant improvement over manual intervention.
User and Developer Acceptance
In a study involving 16 participants with simulated low vision and 16 with normal vision, 94.8% of the low-vision group preferred the Iris-repaired interfaces. Notably, even participants with normal vision preferred the repaired versions over 50% of the time, reinforcing the idea that accessible design improves the experience for all users.
To test real-world viability, the authors submitted 40 Pull Requests (PRs) to open-source projects. At the time of publication, 9 PRs had been merged into production code, and 4 more were under active review, demonstrating that Iris generates high-quality, "merge-ready" fixes.
Limitations and Future Work
While Iris represents a significant step forward, it has limitations. It currently relies on external detection tools; if a detector fails to identify an issue, Iris cannot fix it. Furthermore, the reliance on static analysis means the tool may struggle with dynamic UIs where colors are determined at runtime. Future iterations aim to support modern declarative frameworks like Jetpack Compose.
Conclusion
Iris demonstrates that automated accessibility repair does not have to compromise design quality. By leveraging harmonic color theory and large-scale design patterns, Iris provides a scalable solution for developers to create more inclusive mobile experiences without sacrificing their brand's visual identity.
Summary updated