- What is a complementary color scheme in UI design?
- A complementary color scheme pairs a hue with the one directly opposite it on the color wheel — blue with orange, violet with yellow, green with red. In an interface the pair is used unevenly: the primary carries surfaces, links and most buttons, and the complement is reserved for the one element that must stand out. This generator's complementary rule does that by default — the secondary sits at 180° from your seed and the accent at 210°, so the pair reads as a designed scheme rather than a clash. The guide to complementary color schemes for UI covers how to weight them.
- How is the accent color generated?
- The accent and secondary colors move around the color wheel from your seed. They follow the harmony rule you choose: complementary, analogous, triadic, split-complementary or monochromatic. That keeps them tied to the primary color instead of random — change the rule, and the accent shifts with it. Every swatch copies as a hex code with one click.
- Can I use this palette with Material UI (MUI)?
- Yes. The output is plain hex and CSS variables, so the roles map straight onto an MUI theme: primary, secondary and accent to palette.primary and palette.secondary, background and surface to palette.background.default and paper, and text and muted to palette.text. The same is true for shadcn/ui, Chakra, or custom CSS — nothing in the export is tied to one framework. It also works as a Material UI color palette and a Tailwind theme generator for CSS-first setups.
- Can I use this for shadcn colors?
- Yes — the eight roles map directly onto the shadcn colors a project reads: primary, secondary and accent onto --primary, --secondary and --accent; background and surface onto --background and --card; text and muted onto --foreground and --muted-foreground; border onto --border. Use it as a shadcn color picker: choose a seed with the picker (or start from a curated set), and the harmony rule grows a color palette shadcn/ui can consume as CSS variables. For the grays specifically, this replaces picking a stock base color — the neutrals are tinted with your seed hue instead of coming from a fixed scale.
- Can I extract a color palette from an image?
- Yes. Switch the generator to 'From an image' and drop a photo, logo or screenshot on it — or paste one from the clipboard. The picture is downscaled and its pixels are binned into a color histogram in your browser; nothing is uploaded. The most present distinct colors come out with their share of the image, the lightest or darkest one becomes the background, and the vivid ones fill primary, secondary and accent. Click an extracted swatch to leave it out, or press R to promote the next color to primary.
- What are the eight color roles?
- Three brand roles — primary, secondary and accent — come from the harmony rule. Five neutral roles — background, surface, text, muted and border — come from the seed hue at lightness steps tuned for clarity in light or dark mode. That is the set an interface actually uses, so the palette fits a design system without making up grays.