Dark mode palette generator
Enter one brand color and get a readable, consistent dark-mode palette, with the light mode alongside and every pair checked for contrast.
One brand color in. A complete light and dark UI color system out.
How it works
- Enter your brand color, the one your light theme already uses.
- The preview opens in dark mode. Switch to light to compare, and read the accessibility results for both.
- Copy the CSS export. Light values are in :root and dark values are in .dark; add the “dark” class to the html element to switch.
Light and dark, from one color
This generator gives both modes together, which suits a site with a light and dark switch. The dark surfaces come from a neutral scale with a faint hint of your hue, and your brand color gets a lighter variant where it would be too dark to read on them. Every required text pair passes 4.5:1, and interface parts 3:1, in both modes, with a small margin. The CSS export has an optional prefers-color-scheme block for sites that follow the system setting. For only the dark half, use Brand Color to Dark Mode.
Questions
How is the dark palette chosen?
Dark surfaces come from a neutral scale with a faint hint of your color, text is kept readable on them, and your brand color gets a mode-specific variant where contrast needs it.
Can I get only the dark values?
Yes. The brand color to dark mode tool exports just the dark half and explains each choice.
Does it follow the visitor’s system setting?
It can. Turn on the option in the CSS export to add a prefers-color-scheme rule.
Is my color sent anywhere?
No. Everything is worked out in your browser.