Color Palette Generator

Choose how many colors and generate. Tap a swatch to copy its hex code.

How palettes are built

Colors are generated in HSL (hue, saturation, lightness). A random starting hue is chosen, and the other colors are spaced evenly around the color wheel from it, each nudged by up to 8 degrees so the palette doesn’t look mechanical. Saturation is kept between 55% and 85% and lightness between 45% and 65%, which avoids muddy or washed-out colors and keeps the set looking related.

Example palettes

Three palettes generated by this tool, with the more readable text color for each swatch and its contrast ratio:

#40D5E2#6022CB#E0348E#E8A829#2ED81E
Black text, 11.8:1White text, 8.1:1Black text, 5.1:1Black text, 10.1:1Black text, 11.0:1
#DF7726#70D347#17C1CF#4D2EC0#E82E8D
Black text, 6.8:1Black text, 11.1:1Black text, 9.6:1White text, 8.5:1Black text, 5.2:1
#3F85EA#A827DA#E9342D#D5EC46#46D278
Black text, 5.8:1White text, 5.3:1Black text, 5.0:1Black text, 15.9:1Black text, 10.8:1

Readable text on your colors

The Web Content Accessibility Guidelines (WCAG) recommend a contrast ratio of at least 4.5:1 for normal body text and 3:1 for large text. Mid-lightness colors like these are often close to the line, so check text contrast before using a color as a background behind words. Using the boldest color sparingly, for buttons and highlights, and a calmer one for large areas usually works better than giving every color equal space.

Using the hex codes

Tap any swatch to copy its hex code. Hex codes work directly in CSS, design tools, presentation software, and most image editors. Generate as many times as you like until one palette has a clear standout color. For mood ideas, the aesthetic quiz is a fun starting point.