Color Palette Generator
Enter one base color to build harmonious palettes, shades, and tints ready to copy as hex, RGB, HSL, CSS variables, JSON, or PNG.
Settings
5 colours · hex · --color
How to Use Color Palette Generator in 3 Steps
Pick a base color
Enter any CSS color value such as hex, RGB, HSL, OKLCH, or a color name, or use the color picker.
Select a color harmony
Switch between Analogous, Complementary, Split, Triadic, Tetradic, Shades, Tints, and Tones, and set swatch count in Settings.
Copy swatches or export tokens
Click any swatch to copy its code, or download CSS custom properties, design-token JSON, or a PNG swatch strip.
Color Palette Generator: Frequently Asked Questions
How does the generator calculate color harmonies?
It rotates HSL hue angles: +180 deg for complementary, +/-150 deg for split, +/-120 deg for triadic, and 90 deg for tetradic. Shades and tints step lightness.
Why does swatch count not change Complementary or Triadic modes?
Geometric harmonies have fixed member counts by definition (2, 3, or 4 colors). The count slider controls Analogous, Shades, Tints, and Tones.
How do I use the palette in CSS or Tailwind?
Copy the :root custom properties with your chosen variable prefix, or download JSON tokens to paste into your theme config.
What is the PNG strip export for?
It renders a clean horizontal swatch card labeled with color codes for design briefs, slide decks, and Figma boards.
Is my input sent to a server?
No. JavaScript computes everything inside your browser tab. Toolity uploads, logs, or stores nothing.
Explore All Labs Tools
Generate QR codes, build shareable links, convert units, and run everyday browser utilities.