Variable: colorContrastTool
ts
const colorContrastTool: Tool<SpooledArtifact>;Compute the WCAG 2.1 contrast ratio between two colours.
Remarks
Accepts hex (#rgb, #rrggbb), rgb(), hsl(), or one of the CSS / Material Design named colours. Reports the ratio and pass/fail against WCAG AA and AAA at both normal and large text sizes. If the foreground/background combination fails AA Normal (4.5:1), the tool suggests lightened or darkened variants that would pass.