What Is the Color Palette Generator?
The Color Palette Generator creates random 5-color palettes that you can use in web design, graphic design, illustration, and branding projects. Each swatch displays its hex, RGB, and HSL values, and you can lock individual colors while regenerating the rest.
The tool runs entirely in your browser with no signup or account required. Palettes can be exported as CSS custom properties, Tailwind configuration values, or a plain hex list — ready to paste directly into your project.
How to Generate a Color Palette
Creating a palette is fast and intuitive:
- Click Generate or press the spacebar to create a new random 5-color palette.
- Click any color swatch to copy its hex code to your clipboard.
- Hover over a swatch and click the lock icon to keep that color fixed.
- Press spacebar again — only unlocked colors will change, letting you build around your favorite colors.
- Use the Export section to copy the palette in your preferred format.
Export Formats
The tool supports three export formats for easy integration into your workflow:
- CSS Variables — Generates a :root block with custom properties you can drop into any stylesheet.
- Tailwind — Produces a colors object ready for your tailwind.config.js file.
- Hex List — A simple newline-separated list of hex values, useful for design tools and documentation.
Tips for Building Great Palettes
- Lock one or two colors that match your brand, then generate to find complementary accents.
- Look at the HSL lightness values to ensure good contrast between your text and background colors.
- For accessible designs, pair colors with at least a 4.5:1 contrast ratio for text.
- Generate several palettes and screenshot your favorites for comparison before committing.
Common Use Cases
- Finding color schemes for websites, apps, and landing pages.
- Creating brand color palettes for logos and marketing materials.
- Exploring color combinations for illustrations and digital art.
- Generating themed palettes for presentations and slide decks.
- Rapid prototyping with ready-to-use CSS or Tailwind values.