WCAG contrast ratio

Client

WCAG 2.x contrast formula.

About WCAG contrast ratio

Contrast ratio between two #RRGGBB colors. The interactive transform on this page runs in your browser tab—Toolcore does not need your paste for the core operation described above.

How to use this page

Paste or type in the main workspace, run the primary action from the toolbar, then copy or download the result. Use Load example when the page offers it, or URL prefill (?q= / ?qb=) so agents and tickets open the same input.

Loading…

Nearby workflows on Toolcore

  • Relative luminance — WCAG relative luminance from #RRGGBB hex. when color values need conversion, contrast review, or theme export.
  • Color tools — Hub for converter, harmony palettes, tint/shade scales, Tailwind-style theme, MUI createTheme palette, HeroUI-style CSS variables, WCAG c… when color values need conversion, contrast review, or theme export.
  • sRGB to linear — Convert sRGB channel 0–255 or 0–1 to linear RGB. when color values need conversion, contrast review, or theme export.
  • HSL to RGB — Convert HSL degrees and % to RGB 0–255. when color values need conversion, contrast review, or theme export.

Common use cases

  • WCAG contrast ratio for quick local checks without uploading data.
  • Copy results into tickets, docs, or classroom notes.

Common mistakes to avoid

  • Unexpected input shape

    See the intro and how-to notes for accepted formats.

FAQ

Is processing local?

Yes—this runs entirely in your browser.

Agent prefill?

Use q or qb for the main text field when supported.

Related utilities you can open in another tab—mostly client-side.