Solution should address these criteria as well for the output to be ECAG compliant
Visual Presentation and Color
Color contrast requirements: Text must have a contrast ratio of at least 4.5:1 (3:1 for large text) against background colors
Color independence: Don't use color as the only way to convey information
Text resizing: Text must be resizable up to 200% without loss of content or functionality
Text spacing: Content must accommodate user-adjusted line height (1.5x font size), paragraph spacing (2x font size), letter spacing (0.12x font size), and word spacing (0.16x font size)