# Generate a color palette from one color

> Build a palette from one color, with even OKLCH tints and real contrast checks.

Generate complementary, analogous, triadic and monochrome palettes from one color, with OKLCH tints, WCAG contrast and a color-blindness preview. No uploads.

- Tool: [Color palette](https://fixmint.cc/color-palette-generator)
- Category: [Design & colour](https://fixmint.cc/design)
- Fixes: Palette looks muddy
- Runs in the browser: files and text stay on the device, no sign-up, free.

## How to build a color palette

1. Pick the base color, or type its hex, RGB or HSL value.
2. Choose a scheme, lock the colors you like and regenerate the rest.
3. Check contrast, simulate color blindness and export the palette.

## Questions

### How is the palette generated?

Colors are mixed in OKLCH, where equal steps of lightness look equal. The scheme sets the hues (complementary, analogous, triadic, split-complementary, tetradic or monochrome), and the lightness is spread around the base color. The tints and shades step from 50 to 950 at even OKLCH lightness.

### What do the contrast labels mean?

WCAG 2.2 contrast is the luminance ratio between text and background. Normal text needs 4.5:1 for AA and 7:1 for AAA. Large text needs 3:1 for AA and 4.5:1 for AAA. Each swatch shows its ratio on white (W) and black (B).

### What do the color-blindness previews show?

Protanopia, deuteranopia and tritanopia are simulated with the Machado 2009 matrices applied to linear RGB. It is an approximation, not a replacement for testing with people.

### Does the exported PNG include the color-blindness preview?

No. Exports use the true palette colors, even while a simulation is on screen.

### Is my color sent anywhere?

No. The colors are computed and the files are made in your browser. Nothing is uploaded.

## Related tools

- [Color converter](https://fixmint.cc/color-converter): Need a color in another format
- [Accessibility checker](https://fixmint.cc/accessibility-checker): Is this page accessible?
- [Favicon generator](https://fixmint.cc/favicon-generator): Website needs a favicon
- [Rainy city scene maker](https://fixmint.cc/city-scene-maker): Make a rainy city scene
