Start with real sampled colors
Pick colors from a photo, screenshot, brand reference, or live scene, then keep the exact codes. Contrast checking is only useful when the colors being compared are the colors you actually plan to use.
That is especially important when inspiration comes from a real object or room instead of a design file.