The contrast ratio between two colours, from 1 to 21, as WCAG defines it: text needs 4.5 against its background at level AA, or 3 when it is large.
One colour.
The other; the order does not matter.
The contrast ratio between two colours, from 1 to 21, as WCAG defines it: text needs 4.5 against its background at level AA, or 3 when it is large.