Convert a color

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.

get/api/v1/convert-color

Request

  • Base URL: https://pickshade.com
  • URL: https://pickshade.com/api/v1/convert-color
  • Auth: none declared

Query parameters

colorstring required

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

formatsstring[]

Formats to return. Defaults to hex, rgb, hsl, oklch, oklab and display-p3

Response

Result

Changes

No recorded changes to this operation across all 1 revision of this API.