Color Palette Generator
Create harmonious color palettes online. Generate random or themed colors, lock your favorites, view shade scales, check contrast and color blindness simulation, and export in CSS, SCSS, JSON, Tailwind, HEX, RGB, HSL or OKLCH.
About this tool
Create harmonious color palettes in seconds. Browse the gallery of auto-generated palettes or open the editor to generate variations, lock favorite colors, adjust the number of colors, and export for your projects. Colors are calculated in the perceptual Okhsl color space, which keeps tones visually balanced and avoids the common distortions of traditional HSL.
Key features
Common uses
- Discover new palettes and combinations for interfaces and design systems, with perceptually balanced tones ready to use
- Define color schemes for presentations, posts, and marketing materials with visual harmony
- Copy color values in HEX, RGB, HSL or OKLCH directly into CSS, without manually calculating colors
- Test different color harmonies (analogous, monochromatic, complementary, triadic, tetradic) in interface redesigns before finalizing the project
- Check contrast accessibility and visualize how the palette looks to people with color blindness
How to use
Browse the gallery
The page opens with several auto-generated palettes. Choose between random and theme mode, press the Space key to generate new options, or click 'Load more' to expand the gallery.
Open in the editor
Click a palette to open it in the editor. Lock the colors you want to keep and generate again to vary only the rest.
Adjust and export
Adjust the number of colors, view shade scales, check contrast and color blindness simulation, then export in the format you need or share via link.
Technical notes
A few details help explain how colors are generated and why they stay balanced:
FAQ
The page opens with several auto-generated palettes. Press the space bar (or the Generate new button) to create more, or choose a theme like pastel or dark. Clicking a palette opens the editor where you can lock colors and adjust as needed.
In random mode, colors can come from any point in the spectrum. In theme mode, generation is biased toward a specific look — pastel uses light and soft colors, dark uses low-lightness tones, vintage uses aged and desaturated tones, and so on.
Okhsl is a perceptually uniform color model. In practice, this means that adjusting a color's lightness produces changes the eye perceives as even steps, resulting in more balanced palettes and shades than traditional HSL — especially when comparing very different colors like yellow and blue.
In the editor, the Share button copies a link with the colors encoded in the URL. Anyone opening that link will see exactly the same palette in the editor. You can also export the colors as CSS, SCSS, JSON, Tailwind, or a HEX list.