Color Generation
The /color endpoint generates a color in multiple formats. You can provide a HEX color to convert, or omit it to get a random color.
gethttps://api.moxon.dev /v4/color
Try itget/v4/color
curl -X GET \ "https://api.moxon.dev/v4/color"Send the request to see the response here.
hexstringoptionalA HEX color to convert (e.g.
ff6600). Random if omitted
hexstringHexadecimal color code
rgbstringRGB color format
hslstringHSL color format (Hue, Saturation, Lightness)
hsvstringHSV color format (Hue, Saturation, Value)
hwbstringHWB color format (Hue, Whiteness, Blackness)
cmykstringCMYK color format (Cyan, Magenta, Yellow, Key/Black)
If parameters are invalid, the API will return an error:
- 400
Invalid HEX color (use #RRGGBB)Thehexparameter is not valid hex
Last updated on April 21, 2026