Auto Luminance Inversion

Dark Mode Helper

Generate dark mode equivalents for your Tailwind light mode colors. Build consistent themes with proper luminance inversion.

Light Mode Colors
Generated Classes
bg-white
dark:bg-slate-950
text-slate-900
dark:text-slate-100
bg-indigo-600
dark:bg-indigo-400
text-white
dark:text-slate-950
Preview

Preview Heading

This is how your colors will look in light mode. The luminance is automatically inverted for optimal readability.

Dark Mode Rules

Shades are inverted: 50 → 950, 100 → 900, etc.
Middle shade (500) stays the same for accent colors
white becomes slate-950
black becomes white