Currently, the WCAG algorithm is used to decide whether to use a light or dark foreground for a given background color. This isn't the best algorithm for the job. The SAPC-APCA algorithm seems like a better choice. For example, consider the background color #3bb273 with the foreground choices #001c5a or #ffffff. WCAG chooses the less legible option.
Prerequisites
Proposal
Currently, the WCAG algorithm is used to decide whether to use a light or dark foreground for a given background color. This isn't the best algorithm for the job. The SAPC-APCA algorithm seems like a better choice. For example, consider the background color
#3bb273
with the foreground choices#001c5a
or#ffffff
. WCAG chooses the less legible option.Motivation and context
The SAPC-APCA authors have written extensively about the issues of WCAG: https://git.apcacontrast.com/documentation/APCAeasyIntro