A complete color palette for your website
Most palette generators give you five colors and leave you to guess where each one goes. This one starts from a single color you like and builds a palette ready for a website: each color has a role (background, cards, text, buttons, accent, success and error states), in a light and a dark theme. The contrast is checked for accessibility, a preview shows the palette on a real page layout, and the code is ready to paste in CSS or Tailwind.
How to generate a color scheme
- Choose your main color with the color picker, paste its HEX, RGB or HSL code, or try a random one.
- Pick a harmony for the accent color and the themes you need: light, dark or both.
- Check the preview and the contrast, then copy the CSS, Tailwind or JSON code.
What is in the palette
- Background, surface and border: the page, the cards and the separators, in grays tinted with your color.
- Text and muted text: titles, body text and secondary information, with enough contrast.
- Primary and accent: buttons, links, badges and highlights, with a hover color and the right text color on top.
- Success, warning and danger: confirmation, warning and error messages that match the palette.
- Shades from 50 to 950: the full scale of your color, the accent and the grays, for every other need.
Frequently asked questions
How do I create a color palette for my website?
Choose the main color of your brand, or click the random button for ideas. The generator builds every color a website needs from it: buttons, links, backgrounds, cards, borders, text and state colors, for a light and a dark theme. Check the result on the preview, then export the code.
What do the harmony options change?
They choose the accent color, used for badges and highlights. Monochrome keeps your hue, Analogous takes a neighboring hue for a soft look, Complementary takes the opposite hue for strong contrast, and Triadic a hue a third of the color wheel away. Auto gives a balanced accent close to the complementary color.
Is the palette accessible?
The contrast of every important pair is checked with the WCAG 2 formula and shown with its level. Text and secondary text are adjusted automatically to reach 4.5:1 on the background (level AA). Your own color is kept as it is for the buttons of the light theme, and the button text is set to white or dark, whichever reads better.
How is the dark theme created?
A dark theme is not an inverted light theme. The backgrounds become dark grays tinted with your hue, the text becomes light, and your color and the accent are made lighter so they stay readable and do not look dull on a dark background.
How do I use the palette in my code?
Export it as CSS variables: the dark theme is applied automatically with prefers-color-scheme. For Tailwind CSS v4, the export also maps the variables to utilities such as bg-primary or text-muted, and adds the full shades from 50 to 950. JSON is available for design tools and other frameworks.
Can I share a palette?
Yes. The address of the page follows your settings: copy the link and anyone who opens it gets exactly the same palette.
Related tools
- Image color picker: get the HEX code of a color from a logo or a photo, then build a palette from it.
- PNG to ICO: create the favicon of your website.