If you'll accept the step of copying the values into the tool that figures out the complementary colors for you, macOS comes with Digital Color Meter, which will tell you the color of anything on your screen.
I have it set to CMD + Shift + C. Great to have it easily accessible