Establish a maximum-contrast baseline
Example input
#000000
#ffffffExpected result
21:1Use black foreground and white background. The ratio is 21 to 1 and clears the AA normal-text threshold of 4.5 to 1. Large text has a different threshold. If a design uses translucent text, an image or a gradient, first determine the effective colors at the weakest point; two isolated HEX values cannot describe that changing background.