CONVERSION BAY
Compute the WCAG 2.1 contrast ratio between a foreground and background hex color, then report AA and AAA pass status for normal and large text.
WHAT THIS DOES
Runs entirely in your browser.
/tools/wcag-contrastwcag-contrastv4.0.0LOCAL · LOCAL RUNIMPLEMENTED — This workbench is functional in the current release.Presets for this workbench
No preset yet. A preset stores the values in this form — never the result — and only for workbenches that run entirely in your browser.
Collections
Saved on this device only. Turn on sync to carry them to another device.
BATCH / ONE VALUE PER LINE
Up to 200 lines, one at a time, in this browser. Each line takes the place of foreground and everything else stays as you set it. Nothing is uploaded, and the row limit is not exceeded silently.
METHOD / LOCAL RUN
Foreground and background sRGB values are linearized to relative luminance, then the WCAG 2.1 ratio formula yields a number to one decimal place.
Boundary: Does not test non-text contrast or focus visibility.
The calculation or transformation runs in your browser using the values entered above. No input is sent to UtilityForge for this tool.
EXAMPLES / LOCAL RUN FIXTURES
FAQ
Does not test non-text contrast or focus visibility.
No. This published tool runs locally in your browser. UtilityForge does not send the values entered in this workbench to a server.
No. This workbench runs in the page: Foreground color, Background color are read by the code your browser already downloaded, and UtilityForge receives neither the values nor the result.
Yes, and it is enforced rather than advertised: Foreground color (16 characters) and Background color (16 characters). The limit is a browser input limit on a tool that runs on this device, so nothing is truncated after being sent anywhere.
RELATED TOOLS
LOCAL — Runs entirely in your browser.
COMMON USE CASES / SOURCE NOTE
Last reviewed:
Source information: Browser-local WCAG 2.1 relative-luminance computation over supplied sRGB values. No rendering, palette, or accessibility audit service is used.