# Colour palette generator

Build colour schemes from one base colour: complementary, analogous, triadic and a 50 to 950 shade scale.

- Endpoint: `POST https://setget.net/v1/tools/palette-generate` with JSON `{"input": {...}}`
- MCP: `run_tool` with `slug` = `palette-generate`
- Page: https://setget.net/tools/palette-generate

## Inputs

- `color` (required, string): The base colour, in any CSS format.

## Example

```json
{"input":{"color":"#0088cc"}}
```

Result:

```json
{"base":"#0088cc","complementary":["#0088cc","#cc4400"],"analogous":["#00ccaa","#0088cc","#0022cc"],"triadic":["#0088cc","#cc0088","#88cc00"],"tetradic":["#0088cc","#4400cc","#cc4400","#88cc00"],"square":["#0088cc","#aa00cc","#cc4400","#22cc00"],"split_complementary":["#0088cc","#cc0022","#ccaa00"],"monochromatic":["#004466","#006699","#0088cc","#00aaff","#33bbff"],"scale":{"50":"#ebf5fb","100":"#d6ecf7","200":"#add9ef","300":"#7ac1e4","400":"#3da5d8","500":"#0088cc","600":"#006da3","700":"#00527a","800":"#003652","900":"#001b29","950":"#000e14"}}
```

**Which colour formats can I type?** Hex (#rgb, #rrggbb, #rrggbbaa), rgb() and rgba(), hsl() and hsla(), hwb(), oklab(), oklch(), and any of the 148 CSS colour names such as "rebeccapurple".

**How are the schemes built?** By turning the hue on the HSL colour wheel while keeping saturation and lightness: 180 degrees for complementary, 30 either side for analogous, 120 for triadic, 60/180/240 for tetradic, 90 for square and 150/210 for split complementary.

**How is the 50 to 950 scale made?** 500 is your base colour. Lighter steps mix in more white and darker steps mix in more black.

**What is monochromatic?** The same hue and saturation at five lightness levels: two darker than the base and two lighter.
