Light mode
A semantic interface state
Tokens describe a job. Contrast results below determine whether each intended pairing passes.
Surface card
Background, surface, border, text, muted text, focus, hover, and active roles are exported.
Design-system workspace
Turn one seed into a perceptual 50-950 scale, semantic light and dark roles, measured contrast evidence, and copy-ready CSS, JSON, and Tailwind tokens.
Enter Hex, RGB, HSL, OKLCH, or a CSS color name. The ramp updates locally.
Normalized
#4F46E5Ordered by OKLCH lightness, then rendered into sRGB.
50
#F3F7FF100
#E6EAFF200
#C9D1FF300
#A5B1FF400
#838EFF500
#6565FF600
#4F49E0700
#3B31B5800
#261984950
#0F0546Light and dark companions use the same scale with job-specific aliases.
Light mode
Tokens describe a job. Contrast results below determine whether each intended pairing passes.
Surface card
Background, surface, border, text, muted text, focus, hover, and active roles are exported.
Dark mode
Tokens describe a job. Contrast results below determine whether each intended pairing passes.
Surface card
Background, surface, border, text, muted text, focus, hover, and active roles are exported.
Ratios are recomputed from the final sRGB tokens. A failed row needs manual adjustment before production use.
| Mode | Pair | Purpose | Ratio | Result |
|---|---|---|---|---|
| light | text / background | Normal text, WCAG 2.2 AA | 17.30:1 | Pass · 4.5:1 |
| light | mutedText / background | Secondary normal text, WCAG 2.2 AA | 12.58:1 | Pass · 4.5:1 |
| light | onPrimary / primary | Text on primary, WCAG 2.2 AA | 6.24:1 | Pass · 4.5:1 |
| light | primary / background | UI component boundary / large text | 5.81:1 | Pass · 3:1 |
| light | focus / background | Focus indicator contrast | 4.02:1 | Pass · 3:1 |
| dark | text / background | Normal text, WCAG 2.2 AA | 17.30:1 | Pass · 4.5:1 |
| dark | mutedText / background | Secondary normal text, WCAG 2.2 AA | 12.42:1 | Pass · 4.5:1 |
| dark | onPrimary / primary | Text on primary, WCAG 2.2 AA | 7.27:1 | Pass · 4.5:1 |
| dark | primary / background | UI component boundary / large text | 6.43:1 | Pass · 3:1 |
| dark | focus / background | Focus indicator contrast | 6.43:1 | Pass · 3:1 |
CSS variables, JSON, or a Tailwind theme extension.
:root {
--color-brand-50: #F3F7FF;
--color-brand-100: #E6EAFF;
--color-brand-200: #C9D1FF;
--color-brand-300: #A5B1FF;
--color-brand-400: #838EFF;
--color-brand-500: #6565FF;
--color-brand-600: #4F49E0;
--color-brand-700: #3B31B5;
--color-brand-800: #261984;
--color-brand-950: #0F0546;
--color-background: #F3F7FF;
--color-surface: #FFFFFF;
--color-border: #C9D1FF;
--color-text: #0F0546;
--color-muted-text: #261984;
--color-primary: #4F49E0;
--color-on-primary: #FFFFFF;
--color-hover: #3B31B5;
--color-active: #261984;
--color-focus: #6565FF;
}
[data-theme="dark"], .dark {
--color-background: #0F0546;
--color-surface: #261984;
--color-border: #3B31B5;
--color-text: #F3F7FF;
--color-muted-text: #C9D1FF;
--color-primary: #838EFF;
--color-on-primary: #000000;
--color-hover: #A5B1FF;
--color-active: #C9D1FF;
--color-focus: #838EFF;
}Enter a seed in Hex, RGB, HSL, OKLCH, or a CSS color name. Review the perceptual scale, inspect semantic roles in light and dark interface previews, then check every measured pairing. Copy the implementation format that fits your codebase and adjust any row marked Needs work.
OKLCH separates perceived lightness, chroma, and hue more evenly than HSL. That makes it a useful basis for ordered UI states, although gamut conversion and real interface context still matter. This tool reports the final sRGB values and measures those exact values rather than relying on the source coordinates alone.
Numeric steps are raw palette values; semantic roles describe intent. Background, surface, border, text, primary, hover, active, and focus aliases make a design system easier to change without rewriting component styles. Light and dark companions share the same underlying ramp while using different roles.
The generator holds the seed hue steady and orders each step by OKLCH lightness, with less chroma near the lightest and darkest ends. Final values are rendered to sRGB so the exported Hex tokens match browser output.
No generated scale is universally accessible. The tool measures each intended foreground/background pairing after sRGB conversion and labels it Pass or Needs work against the stated WCAG ratio.
Both light and dark themes include background, surface, border, text, muted text, primary, on-primary, hover, active, and focus roles. Treat these as a tested starting point and review them in your real interface states.
Copy CSS custom properties, structured JSON with contrast evidence, or a Tailwind-style theme extension. Every export is generated locally from the normalized seed.
Keep the color moving
Your latest color stays in the local workspace when the next tool uses it.
Measure WCAG 2.2 contrast with luminance details and validated alternatives
Generate reproducible colors with constraints, locks, history, and exports
Generate harmonious color palettes from any base color
Convert RGB and alpha to Hex, CSS formats, color spaces, code, and states
See how your palette looks with each type of color vision deficiency