How to use Color Palette Generator
- Enter an opaque #RGB or #RRGGBB base color, or choose an editable palette example.
- Choose a hue harmony and how many tints and shades to add for each harmony color. Set the white or black mixing increment.
- Select Create color palette and compare the named HEX, RGB and HSL values. Copy or download the CSS variables or JSON; enable the PNG option if you also want a color strip.
- Assign colors to real roles such as text, surface and accent, then check the exact foreground/background pairs in Contrast Checker.
Example: Color Palette Generator
Generate red and cyan with one 20% tint and one 20% shade of each.
Options
- Base color and harmony
- Complementary uses the base and opposite hue. Analogous adds hues 30° either side; triadic uses 120° spacing; split complementary adds 150° and 210°. Hue spacing does not establish contrast or perceptual harmony.
- Tints, shades and increment
- Choose zero to four tints and zero to four shades for every harmony color. The increment is a whole percentage from 1 to 25. Three tints at 20% mix in 20%, 40% and 60% white; shades use black. Mixing uses encoded sRGB channels.
- Export formats
- CSS contains named --palette-* variables and JSON keeps color values and mixing details. The optional PNG is a strip of the generated colors; it does not label their roles in your design.
Supported inputs and limits
- Opaque sRGB hex inputs only, with four fixed HSL hue harmonies and up to 27 color entries.
- Counts range from zero to four tints and shades per harmony color; mixing increments range from 1% to 25%.
- RGB channels are rounded to whole bytes and repeated colors keep their separate token names.
- Optional PNG output is at most 1728 × 96 pixels and 2 MiB.
- The tool does not sample an image, generate random palettes, lock swatches or export ASE or Tailwind settings.
More details
Hue spacing and encoded sRGB mixing do not measure perceptual similarity or accessibility; check contrast separately.
Where your input is processed
This tool does not upload your inputs. See the limits for anything saved on your device.
Select colors for an actual role
Decide which value is a surface, text color, border or accent before using the palette in an interface. Hue spacing and optional PNG strips help compare candidates, but contrast must be checked for the exact foreground/background pair and text size. The generated colors do not automatically become theme variables or change another page.
Questions about Color Palette Generator
Does complementary mean accessible?
No. Hue separation does not establish text contrast, focus visibility or color-blind usability.
Why can gray produce a limited palette?
A gray color has no meaningful saturation, so changing hue alone may leave it visually unchanged.
Does this sample an image?
No. It derives colors from your entered base and the selected mathematical harmony.