> ## Documentation Index
> Fetch the complete documentation index at: https://spotzee.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate synthetic color data

> 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.



## OpenAPI

````yaml https://apix.spotzee.com/api/ext/openapi.json post /generic/data/generate/color
openapi: 3.1.0
info:
  title: Spotzee API
  version: '2026-04-28'
  description: >-
    Comprehensive API for email services, DNS management, AI tools, and
    marketing features.
servers:
  - url: https://apix.spotzee.com/api/ext
    description: >-
      Extended API surface — sender-side utilities (DNS, AI, deliverability,
      generators).
security:
  - BearerAuth: []
tags:
  - name: AI
    description: >-
      Sender-side AI utilities — generate copy, score subject lines, and draft
      message variants tailored to a contact or campaign brief.
  - name: Data
    description: >-
      Realistic-looking sample data for development and load testing — contacts,
      events, and segments shaped like production records without exposing real
      customer data.
  - name: DNS
    description: >-
      Inspect a domain’s sender posture — SPF, DKIM, DMARC, MX, and reverse-DNS
      records — and surface the gaps that put deliverability at risk.
  - name: Email
    description: >-
      Send-side validation and inspection — verify addresses, fingerprint MTAs,
      decode bounces, and check inbox-placement signals before a campaign goes
      out.
  - name: SMS
    description: Mobile-number validation and carrier lookup for SMS campaigns.
  - name: Text
    description: >-
      Text-quality utilities — spam-score grading, readability metrics, and
      subject-line scoring against deliverability heuristics.
paths:
  /generic/data/generate/color:
    post:
      tags:
        - Data
      summary: Generate synthetic color data
      description: >-
        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.
      operationId: generateColorData
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                count:
                  type: string
                  description: >-
                    Number of color records to generate (1-100). Passed as
                    string but must be numeric.
                  example: '10'
                  pattern: ^[1-9]\d?$|^100$
                locale:
                  type: string
                  description: >-
                    Locale for generated data (for example, en, es, fr, de, pt,
                    zh)
                  example: en
                seed:
                  type: string
                  description: >-
                    Seed for deterministic generation. Same seed produces same
                    results.
                  example: '12345'
                method:
                  type: string
                  description: Color generation method. Defaults to profile.
                  example: profile
                  enum:
                    - profile
                    - cmyk
                    - colorByCSSColorSpace
                    - cssSupportedFunction
                    - cssSupportedSpace
                    - hsl
                    - human
                    - hwb
                    - lab
                    - lch
                    - rgb
                    - space
                format:
                  type: string
                  description: >-
                    Output format for supported color methods. hex is supported
                    only by rgb and profile.
                  example: css
                  enum:
                    - decimal
                    - css
                    - binary
                    - hex
                includeAlpha:
                  type: string
                  description: Include alpha in rgb, hsl, or profile output.
                  example: 'false'
                  enum:
                    - 'true'
                    - 'false'
                casing:
                  type: string
                  description: Hex output letter casing for rgb or profile output.
                  example: upper
                  enum:
                    - upper
                    - lower
                prefix:
                  type: string
                  description: >-
                    Hex output prefix for rgb or profile output. Maximum 4
                    characters.
                  example: '#'
                  maxLength: 4
                cssColorSpace:
                  type: string
                  description: CSS color space for colorByCSSColorSpace or profile output.
                  example: display-p3
                  enum:
                    - sRGB
                    - display-p3
                    - rec2020
                    - a98-rgb
                    - prophoto-rgb
      responses:
        '200':
          description: Successfully generated color data
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  data:
                    type: object
                    properties:
                      colors:
                        type: array
                        items:
                          type: object
                          properties:
                            method:
                              type: string
                              enum:
                                - profile
                                - cmyk
                                - colorByCSSColorSpace
                                - cssSupportedFunction
                                - cssSupportedSpace
                                - hsl
                                - human
                                - hwb
                                - lab
                                - lch
                                - rgb
                                - space
                              description: Resolved color generation method.
                              example: profile
                            value:
                              anyOf:
                                - type: string
                                - type: array
                                  items:
                                    type: number
                              description: Primary generated color fixture value.
                              example: '#4f46e5'
                            cmyk:
                              anyOf:
                                - type: string
                                - type: array
                                  items:
                                    type: number
                              description: Generated CMYK color.
                              example:
                                - 0.31
                                - 0.52
                                - 0.32
                                - 0.43
                            colorByCSSColorSpace:
                              anyOf:
                                - type: string
                                - type: array
                                  items:
                                    type: number
                              description: >-
                                Generated color in the requested CSS color
                                space.
                              example: color(display-p3 0.12 1 0.23)
                            cssSupportedFunction:
                              type: string
                              description: Generated CSS-supported color function name.
                              example: rgb
                            cssSupportedSpace:
                              type: string
                              description: Generated CSS-supported color space name.
                              example: display-p3
                            hsl:
                              anyOf:
                                - type: string
                                - type: array
                                  items:
                                    type: number
                              description: Generated HSL color.
                              example: hsl(0deg, 100%, 80%)
                            human:
                              type: string
                              description: Generated human-readable color name.
                              example: red
                            hwb:
                              anyOf:
                                - type: string
                                - type: array
                                  items:
                                    type: number
                              description: Generated HWB color.
                              example:
                                - 201
                                - 0.21
                                - 0.31
                            lab:
                              anyOf:
                                - type: string
                                - type: array
                                  items:
                                    type: number
                              description: Generated LAB color.
                              example:
                                - 0.856773
                                - -80.2345
                                - 100.2341
                            lch:
                              anyOf:
                                - type: string
                                - type: array
                                  items:
                                    type: number
                              description: Generated LCH color.
                              example:
                                - 0.522345
                                - 72.2
                                - 56.2
                            rgb:
                              anyOf:
                                - type: string
                                - type: array
                                  items:
                                    type: number
                              description: Generated RGB color.
                              example: '#4f46e5'
                            space:
                              type: string
                              description: Generated color-space name.
                              example: sRGB
                            format:
                              type: string
                              enum:
                                - decimal
                                - css
                                - binary
                                - hex
                              description: Resolved color output format.
                              example: css
                            includeAlpha:
                              type: boolean
                              description: Resolved alpha inclusion flag.
                              example: false
                            casing:
                              type: string
                              enum:
                                - upper
                                - lower
                              description: Resolved RGB hex casing.
                              example: upper
                            prefix:
                              type: string
                              description: Resolved RGB hex prefix.
                              example: '#'
                            cssColorSpace:
                              type: string
                              enum:
                                - sRGB
                                - display-p3
                                - rec2020
                                - a98-rgb
                                - prophoto-rgb
                              description: Resolved CSS color space.
                              example: display-p3
                          required:
                            - method
                            - value
                      generated:
                        type: number
                      locale:
                        type: string
                      seed:
                        type: number
                      method:
                        type: string
                        enum:
                          - profile
                          - cmyk
                          - colorByCSSColorSpace
                          - cssSupportedFunction
                          - cssSupportedSpace
                          - hsl
                          - human
                          - hwb
                          - lab
                          - lch
                          - rgb
                          - space
                    required:
                      - colors
                      - generated
                      - locale
                      - method
                  performance:
                    type: object
                    properties:
                      generationTime:
                        type: number
                        description: Generation time in milliseconds.
                        example: 2
                      itemsGenerated:
                        type: number
                        description: Number of items generated.
                        example: 10
                      locale:
                        type: string
                        description: Locale used for generation.
                        example: en
                    required:
                      - generationTime
                      - itemsGenerated
                      - locale
                required:
                  - status
                  - data
                example:
                  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
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                    description: Indicates an error occurred
                  error:
                    type: string
                    description: >-
                      Human-readable error message. Mirrors the Main API
                      envelope’s legacy `error` field; the canonical replacement
                      is `message` + machine-readable `code` (see
                      @spotzee/api-schemas/shared `ErrorResponse`).
                    example: Invalid request parameters
                required:
                  - status
                  - error
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                    description: Indicates an error occurred
                  error:
                    type: string
                    description: >-
                      Human-readable error message. Mirrors the Main API
                      envelope’s legacy `error` field; the canonical replacement
                      is `message` + machine-readable `code` (see
                      @spotzee/api-schemas/shared `ErrorResponse`).
                    example: Invalid request parameters
                required:
                  - status
                  - error
        '402':
          description: Payment Required
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                    description: Indicates an error occurred
                  error:
                    type: string
                    description: >-
                      Human-readable error message. Mirrors the Main API
                      envelope’s legacy `error` field; the canonical replacement
                      is `message` + machine-readable `code` (see
                      @spotzee/api-schemas/shared `ErrorResponse`).
                    example: Invalid request parameters
                required:
                  - status
                  - error
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                    description: Indicates an error occurred
                  error:
                    type: string
                    description: >-
                      Human-readable error message. Mirrors the Main API
                      envelope’s legacy `error` field; the canonical replacement
                      is `message` + machine-readable `code` (see
                      @spotzee/api-schemas/shared `ErrorResponse`).
                    example: Invalid request parameters
                required:
                  - status
                  - error
        '503':
          description: Service unavailable
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                    description: Indicates an error occurred
                  error:
                    type: string
                    description: >-
                      Human-readable error message. Mirrors the Main API
                      envelope’s legacy `error` field; the canonical replacement
                      is `message` + machine-readable `code` (see
                      @spotzee/api-schemas/shared `ErrorResponse`).
                    example: Invalid request parameters
                required:
                  - status
                  - error
        '504':
          description: Gateway timeout
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                    description: Indicates an error occurred
                  error:
                    type: string
                    description: >-
                      Human-readable error message. Mirrors the Main API
                      envelope’s legacy `error` field; the canonical replacement
                      is `message` + machine-readable `code` (see
                      @spotzee/api-schemas/shared `ErrorResponse`).
                    example: Invalid request parameters
                required:
                  - status
                  - error
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Bearer token authentication. Use format: Bearer YOUR_API_KEY'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.