Skip to tool
ecech.
🎨 Design & Color

Derive Dark Theme Tokens while Checking Text Contrast Relationships

Transform light tokens into editable dark candidates and report WCAG contrast for text pairs.

Drop or choose a file up to 2 MB. Its contents replace the main text input; the filename alone is never treated as data.

Reviewable output

Processed

Warnings / conflicts

Output state

Advertisement

How the calculation works

Local inputboundedPer-item ruledeterministicArtifactcopy / download

How to Use This Tool

Transform light tokens into editable dark candidates and report WCAG contrast for text pairs. Generate dark-mode candidates from light-theme hex tokens, preserve token names, calculate text/background contrast, and export CSS variables locally.

The work this page finishes

Simply inverting a light palette can destroy semantic emphasis and leave text pairs unreadable, while hand conversion loses the original token mapping. For Dark Mode Palette, keeping source order beside the computed artifact lets a user repair only the failed entries and reproduce the same batch later.

Rows or choicesValidate every itemReview and export
The sample preserves five semantic token names, emits dark CSS variables and reports the lowest generated text contrast against the first background.

Deterministic workflow

Apply a role-specific deterministic RGB transform, retain safe token names and calculate WCAG relative-luminance contrast between generated text tokens and the first generated background. For Dark Mode Palette, a run is capped at 5,000 items and 2 MB, preventing an accidental oversized paste while preserving successful rows when another row fails.

Why a dedicated interface helps

Use the candidates as a starting point, then inspect every real component, state, elevation and non-text contrast relationship before shipping. For Dark Mode Palette, a purpose-built form exposes every assumption and returns the same ordered structure on every run, which is more practical than reconciling shifting conversational output.

Assumptions

  • Role labels are background, text or accent.
  • The first background token is the contrast reference.
  • Hex colors are opaque sRGB values.

For Dark Mode Palette, keep an untouched copy for comparison after import; the browser performs the work locally, but local software and extensions are not controlled by this page.

Limitations and review boundary

This is not an accessibility certification: the transform is not perceptually uniform, cannot infer token pairings, brand intent or color vision performance, and checks only generated text against one background. For Dark Mode Palette, the implementation neither follows user-entered links nor evaluates their contents, and it displays material as plain text rather than active HTML.

Verification and provenance

Fixtures derived from the displayed rule and W3C WCAG 2.2 — Contrast (Minimum) were reviewed on 2026-08-26; they include normal, empty or invalid, and partial-failure behavior. The sample preserves five semantic token names, emits dark CSS variables and reports the lowest generated text contrast against the first background.

Sources & assumptions

Tool Spec v2 · verified 2026-08-26. Platform rules and fees can change; the editable inputs remain authoritative for your account.

Official references

Model assumptions

  • Role labels are background, text or accent.
  • The first background token is the contrast reference.
  • Hex colors are opaque sRGB values.
  • This is not an accessibility certification: the transform is not perceptually uniform, cannot infer token pairings, brand intent or color vision performance, and checks only generated text against one background.
Advertisement

Frequently Asked Questions

What does Dark Mode Palette complete?
It applies the stated generator rule to dark mode palette inputs and produces the reviewable output shown above.
Why use a dedicated Dark Mode Palette page instead of chat?
The Dark Mode Palette workflow preserves ordering, applies identical validation on every run and creates an artifact without conversational drift.
Does Dark Mode Palette send the input to ecech?
No. Dark Mode Palette reads pasted or selected content inside the current browser tab and does not call an ecech calculation API.
What verifies the default result?
The sample preserves five semantic token names, emits dark CSS variables and reports the lowest generated text contrast against the first background.
When should I reject the output?
This is not an accessibility certification: the transform is not perceptually uniform, cannot infer token pairings, brand intent or color vision performance, and checks only generated text against one background.
Which reference supports Dark Mode Palette?
The recorded Dark Mode Palette reference is W3C WCAG 2.2 — Contrast (Minimum), reviewed 2026-08-26.

Related tools in Design & Color

Browse all Design & Color tools
A handwritten note reading ecech.com resting on the keyboard used to build the site.

Made by one person

ecech. is not a content farm. Every tool here is written and checked by hand, one at a time, by someone who wanted the tool to exist and could not find a version that showed its working.

No accounts and no sign-in, and nothing you type reaches a server — every calculation on this page runs inside your browser. The ads are served by Google and do set their own cookies, which is set out in full on the privacy page. More about the site.