# 配色方案/色彩搭配

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /v2/color/palette:
    get:
      summary: 配色方案/色彩搭配
      deprecated: false
      description: ''
      tags:
        - 🍱 实用功能
      parameters:
        - name: color
          in: query
          description: ''
          required: false
          example: '#33AAFF'
          schema:
            type: string
        - name: encoding
          in: query
          description: 编码方式，支持 text/json/html/markdown
          required: false
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      input:
                        type: object
                        properties:
                          hex:
                            type: string
                          rgb:
                            type: object
                            properties:
                              r:
                                type: integer
                              g:
                                type: integer
                              b:
                                type: integer
                            required:
                              - r
                              - g
                              - b
                          hsl:
                            type: object
                            properties:
                              h:
                                type: integer
                              s:
                                type: integer
                              l:
                                type: integer
                            required:
                              - h
                              - s
                              - l
                          name:
                            type: string
                        required:
                          - hex
                          - rgb
                          - hsl
                          - name
                      palettes:
                        type: array
                        items:
                          type: object
                          properties:
                            name:
                              type: string
                            description:
                              type: string
                            colors:
                              type: array
                              items:
                                type: object
                                properties:
                                  hex:
                                    type: string
                                  name:
                                    type: string
                                  role:
                                    type: string
                                  theory:
                                    type: string
                                required:
                                  - hex
                                  - name
                                  - role
                                  - theory
                          required:
                            - name
                            - description
                            - colors
                      metadata:
                        type: object
                        properties:
                          color_theory:
                            type: string
                          total_palettes:
                            type: integer
                          applications:
                            type: array
                            items:
                              type: string
                        required:
                          - color_theory
                          - total_palettes
                          - applications
                    required:
                      - input
                      - palettes
                      - metadata
                required:
                  - code
                  - message
                  - data
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 🍱 实用功能
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/5757303/apis/api-346344189-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: https://60s.viki.moe
    description: 正式环境
security: []

```
