Skip to content
moxon home

Color Generation

The /color endpoint generates a random color in multiple formats. This endpoint does not require any options.

gethttps://api.moxon.dev/v1/color

Request Example

Request
GET /v1/color

Response

Response
{
    "hex": "#517fff",
    "rgb": "rgb(81, 127, 255)",
    "hsl": "hsl(224, 100%, 66%)",
    "hsv": "hsv(224, 68.2%, 100%)",
    "hwb": "hwb(224, 32%, 0%)",
    "cmyk": "cmyk(68.24%, 50.2%, 0%, 0%)"
}

cURL

cURL
curl -X GET "https://api.moxon.dev/v1/color"