Color Scheme Generator
Generate light and dark CSS custom property color schemes from a single primary color.
Preview
CSS Color Scheme Generator — light & dark mode in one click
This tool generates a complete set of CSS custom properties (variables) for both light and dark themes from a single primary color. All derived colors are computed using HSL math — lightening, darkening, and hue shifts — so the palette is always harmonious. The minimal scheme includes primary, surface, text, and border variables. The full scheme adds semantic colors: success (120° hue shift), warning (45° shift), and error (−45° shift) — plus shadow values. Apply the dark theme by setting data-theme="dark" on <html> or any container element. Pair with the Color Palette Generator for a full design token system.
Private & free — this tool runs entirely in your browser.