Dark mode palette generator
Enter a brand color and get a full dark theme built around it, with every text pair checked for readability.
How to use it
- Enter your brand or accent color as hex, rgb(), hsl() or a name.
- Check the preview and the contrast list: every text pair should pass WCAG AA.
- Click any color to copy it.
- Export the palette as CSS variables, Tailwind or JSON. The page address updates, so you can share it.
How it works
Backgrounds are near-black, tinted slightly with your brand's hue so they feel related instead of plain gray. Pure black is avoided: light text on #000000 glares and makes shadows impossible.
Your brand color is lightened only as much as it needs to reach 4.5:1 on the surface color, changing just its OKLCH lightness so the hue stays recognizable. The muted text color gets the same check.
Related tools
Questions
Why isn't my brand color used exactly?
Many brand colors are too dark to read on a dark background. The tool lightens yours just enough to pass WCAG AA, keeping its hue. If your color already passes, it's used as is.
Why not use pure black for the background?
Pure black with bright white text creates harsh contrast that many people find tiring, and it leaves no room for darker shadows. A very dark tinted gray reads more comfortably.
How do I add the palette to my site?
Export it as CSS variables and put them inside a prefers-color-scheme: dark media query or a dark theme class, then use the variables in your styles.
Can I make a light theme too?
Yes: the accessible palette generator builds a light palette from the same color, where every pairing passes AA.