PickShade Convert Color API

The Convert Color API from PickShade — 1 operation(s) for convert color.

GitHub OpenAPI

Operations 2

GET /api/v1/convert-color Convert a color #
POST /api/v1/convert-color Convert a color #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pickshade-com:pickshade-com-convert-color-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pickshade-com-convert-color-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PickShade color Convert Color API
  version: 1.0.0
  description: 'Free color API: parse, convert, contrast (WCAG 2 and APCA), gamut, names, scales, harmonies, mixing, palettes, color blindness and design token export. Color math follows CSS Color 4. No key needed.'
servers:
- url: https://pickshade.com
tags:
- name: Convert Color
paths:
  /api/v1/convert-color:
    get:
      operationId: convert_color_get
      summary: Convert a color
      description: 'Convert a color between formats: hex, rgb, hsl, hsv, hwb, cmyk, lab, lch, oklab, oklch, display-p3, rec2020, xyz and platform code (swiftui, uikit, flutter, android). Values follow CSS Color 4.'
      responses:
        '200':
          description: Result
          content:
            application/json: {}
        '400':
          description: Invalid input
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: Too many requests. See the Retry-After header
      parameters:
      - name: color
        in: query
        required: true
        schema:
          type: string
          minLength: 1
          maxLength: 120
          description: 'Any color: #ff5733, rgb(255 87 51), hsl(11 100% 60%), oklch(68% 0.21 34), a CSS or common name like navy, or a Tailwind class like sky-500'
      - name: formats
        in: query
        required: false
        schema:
          description: Formats to return. Defaults to hex, rgb, hsl, oklch, oklab and display-p3
          minItems: 1
          maxItems: 21
          type: array
          items:
            type: string
            enum:
            - hex
            - rgb
            - hsl
            - hsv
            - hwb
            - cmyk
            - lab
            - lch
            - oklab
            - oklch
            - display-p3
            - rec2020
            - a98-rgb
            - prophoto-rgb
            - srgb-linear
            - xyz-d65
            - xyz-d50
            - swiftui
            - uikit
            - flutter
            - android
      tags:
      - Convert Color
    post:
      operationId: convert_color
      summary: Convert a color
      description: 'Convert a color between formats: hex, rgb, hsl, hsv, hwb, cmyk, lab, lch, oklab, oklch, display-p3, rec2020, xyz and platform code (swiftui, uikit, flutter, android). Values follow CSS Color 4.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              properties:
                color:
                  type: string
                  minLength: 1
                  maxLength: 120
                  description: 'Any color: #ff5733, rgb(255 87 51), hsl(11 100% 60%), oklch(68% 0.21 34), a CSS or common name like navy, or a Tailwind class like sky-500'
                formats:
                  description: Formats to return. Defaults to hex, rgb, hsl, oklch, oklab and display-p3
                  minItems: 1
                  maxItems: 21
                  type: array
                  items:
                    type: string
                    enum:
                    - hex
                    - rgb
                    - hsl
                    - hsv
                    - hwb
                    - cmyk
                    - lab
                    - lch
                    - oklab
                    - oklch
                    - display-p3
                    - rec2020
                    - a98-rgb
                    - prophoto-rgb
                    - srgb-linear
                    - xyz-d65
                    - xyz-d50
                    - swiftui
                    - uikit
                    - flutter
                    - android
              required:
              - color
            example:
              color: '#ff5733'
              formats:
              - oklch
              - hsl
              - cmyk
      responses:
        '200':
          description: Result
          content:
            application/json: {}
        '400':
          description: Invalid input
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Problem'
        '429':
          description: Too many requests. See the Retry-After header
      tags:
      - Convert Color
components:
  schemas:
    Problem:
      type: object
      properties:
        type:
          type: string
        title:
          type: string
        status:
          type: integer
        detail:
          type: string