A worked example
Black text on white
- Start with
- Main: #000000 · background: #ffffff
- Check the result
- 21.00:1 contrast · AA PASS · AAA PASS · RGB rgb(0, 0, 0)
This compares two opaque solid colors. Check the actual combination again if you use another background or transparency.