Palette
The /palette endpoint generates a harmonious color palette from a base HEX color.
gethttps://api.moxon.dev /v6/palette
Try itget/v6/palette
curl -X GET \ "https://api.moxon.dev/v6/palette"Send the request to see the response here.
colorstringrequiredBase color in HEX format (
#RRGGBB)typestringrequiredPalette type (see below)
- complementary
- triadic
- analogous
- tetradic
- split-complementary
| Type | Colors Generated |
|---|---|
complementary | 2 colors (opposite) |
triadic | 3 colors (120°) |
analogous | 5 colors (-60° to +60°) |
tetradic | 4 colors (90°) |
split-complementary | 3 colors |
base.hexstringBase color in HEX
base.rgbstringBase color in RGB
base.hslstringBase color in HSL
typestringPalette type used
colorsarrayGenerated colors
colors[].hexstringColor in HEX format
colors[].rgbstringColor in RGB format
colors[].hslstringColor in HSL format
If parameters are missing or invalid, the API will return an error:
- 400
A base color is requiredThecolorparameter is missing - 400
A palette type is requiredThetypeparameter is missing - 400
Invalid HEX color (use #RRGGBB)The color format is invalid - 400
Type must be one of: complementary, triadic, analogous, tetradic, split-complementaryInvalid palette type
Last updated on September 12, 2026