curl --request POST \
--url https://apix.spotzee.com/api/ext/generic/data/generate/color \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data count=10 \
--data locale=en \
--data seed=12345 \
--data method=profile \
--data format=css \
--data includeAlpha=false \
--data casing=upper \
--data 'prefix=#' \
--data cssColorSpace=display-p3{
"status": "success",
"data": {
"colors": [
{
"method": "profile",
"value": "#4f46e5",
"rgb": "#4f46e5",
"cmyk": [
0.31,
0.52,
0.32,
0.43
],
"colorByCSSColorSpace": "color(display-p3 0.12 1 0.23)",
"cssSupportedFunction": "rgb",
"cssSupportedSpace": "display-p3",
"hsl": "hsl(0deg, 100%, 80%)",
"human": "red",
"hwb": "hwb(354 72% 41%)",
"lab": "lab(29.2345% 39.3825 20.0664)",
"lch": "lch(52.2345% 72.2 56.2)",
"space": "sRGB",
"format": "css",
"includeAlpha": false,
"cssColorSpace": "display-p3"
}
],
"generated": 1,
"locale": "en",
"seed": 12345,
"method": "profile"
},
"performance": {
"generationTime": 2,
"itemsGenerated": 1,
"locale": "en"
}
}Generates synthetic color fixtures for testing design systems, CSS workflows, UI forms, visualization tools, and sample datasets. Supported methods: profile, cmyk, colorByCSSColorSpace, cssSupportedFunction, cssSupportedSpace, hsl, human, hwb, lab, lch, rgb, and space.
curl --request POST \
--url https://apix.spotzee.com/api/ext/generic/data/generate/color \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data count=10 \
--data locale=en \
--data seed=12345 \
--data method=profile \
--data format=css \
--data includeAlpha=false \
--data casing=upper \
--data 'prefix=#' \
--data cssColorSpace=display-p3{
"status": "success",
"data": {
"colors": [
{
"method": "profile",
"value": "#4f46e5",
"rgb": "#4f46e5",
"cmyk": [
0.31,
0.52,
0.32,
0.43
],
"colorByCSSColorSpace": "color(display-p3 0.12 1 0.23)",
"cssSupportedFunction": "rgb",
"cssSupportedSpace": "display-p3",
"hsl": "hsl(0deg, 100%, 80%)",
"human": "red",
"hwb": "hwb(354 72% 41%)",
"lab": "lab(29.2345% 39.3825 20.0664)",
"lch": "lch(52.2345% 72.2 56.2)",
"space": "sRGB",
"format": "css",
"includeAlpha": false,
"cssColorSpace": "display-p3"
}
],
"generated": 1,
"locale": "en",
"seed": 12345,
"method": "profile"
},
"performance": {
"generationTime": 2,
"itemsGenerated": 1,
"locale": "en"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.spotzee.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer token authentication. Use format: Bearer YOUR_API_KEY
Number of color records to generate (1-100). Passed as string but must be numeric.
^[1-9]\d?$|^100$"10"
Locale for generated data (e.g., en, es, fr, de, pt_BR, zh_CN)
"en"
Seed for deterministic generation. Same seed produces same results.
"12345"
Color generation method. Defaults to profile.
profile, cmyk, colorByCSSColorSpace, cssSupportedFunction, cssSupportedSpace, hsl, human, hwb, lab, lch, rgb, space "profile"
Output format for supported color methods. hex is supported only by rgb and profile.
decimal, css, binary, hex "css"
Include alpha in rgb, hsl, or profile output.
true, false "false"
Hex output letter casing for rgb or profile output.
upper, lower "upper"
Hex output prefix for rgb or profile output. Maximum 4 characters.
4"#"
CSS color space for colorByCSSColorSpace or profile output.
sRGB, display-p3, rec2020, a98-rgb, prophoto-rgb "display-p3"
Successfully generated color data
success Hide child attributes
Hide child attributes
Resolved color generation method.
profile, cmyk, colorByCSSColorSpace, cssSupportedFunction, cssSupportedSpace, hsl, human, hwb, lab, lch, rgb, space "profile"
Primary generated color fixture value.
"#4f46e5"
Generated CMYK color.
[0.31, 0.52, 0.32, 0.43]Generated color in the requested CSS color space.
"color(display-p3 0.12 1 0.23)"
Generated CSS-supported color function name.
"rgb"
Generated CSS-supported color space name.
"display-p3"
Generated HSL color.
"hsl(0deg, 100%, 80%)"
Generated human-readable color name.
"red"
Generated HWB color.
[201, 0.21, 0.31]Generated LAB color.
[0.856773, -80.2345, 100.2341]Generated LCH color.
[0.522345, 72.2, 56.2]Generated RGB color.
"#4f46e5"
Generated color-space name.
"sRGB"
Resolved color output format.
decimal, css, binary, hex "css"
Resolved alpha inclusion flag.
false
Resolved RGB hex casing.
upper, lower "upper"
Resolved RGB hex prefix.
"#"
Resolved CSS color space.
sRGB, display-p3, rec2020, a98-rgb, prophoto-rgb "display-p3"
profile, cmyk, colorByCSSColorSpace, cssSupportedFunction, cssSupportedSpace, hsl, human, hwb, lab, lch, rgb, space Was this page helpful?