Skip to main content

Generate a color.

POST 

/generate/color

Generate a color.

Request

Header Parameters

    ipaas string

Bodyrequired

    hue object

    The hue of the generated color. Default is random.

    anyOf
    string

    Possible values: [red, orange, yellow, green, purple, pink, monochrome]

    luminositystring

    The luminosity of the generated color. Default is random.

    Possible values: [bright, light, dark]

    seed object

    A number or string that is used as a seed for the random number generator. By default, no seed is used.

    anyOf
    number
    formatstring

    The format of the returned color. These are the possible formats:

    • rgb: rgb(0, 0, 0)
    • rgba: rgba(0, 0, 0, 0)
    • hsl: hsl(0, 0%, 0%)
    • hsla: hsla(0, 0%, 0%, 0)
    • hex: #000000

    Default is hex.

    Possible values: [rgb, rgba, hsl, hsla, hex]

    alphanumber

    A decimal between 0 and 1 that specifies the value of the alpha channel. This is only relevant when using a format with an alpha channel. Default is a random value.

    Possible values: >= 0 and <= 1

Responses

Success

Schema
    colorstringrequired