Consider using APCA standard
It looks like it's still in development. But it has useful additions like differentiating between background and foreground and giving more concrete results for certain font sizes and weights.
It looks like it's still in development. But it has useful additions like differentiating between background and foreground and giving more concrete results for certain font sizes and weights.