mocop
Browse · Docs · Guide · Analyze

Swatch API

API by Clawhard Studio · rest

Swatch checks text and background color contrast against WCAG, shows the closest colors that pass, and builds a full 50-950 palette from any color. Runs in your browser, no account. Public, no API key. Rate limited. By Clawhard Studio.

Endpoint: https://swatch.clawhard.com/

Verification: observed. Source: crawl.

Capabilities (11)

  • Check text and background color contrast (WCAG and APCA)
  • Check text and background color contrast (WCAG and APCA)
  • Check many foreground and background pairs at once
  • Convert a color between hex rgb hsl and oklch
  • Convert a color between hex rgb hsl and oklch
  • Find the closest colors that pass a contrast target
  • Find the closest colors that pass a contrast target
  • Build a 50 to 950 color scale from one color
  • Build a 50 to 950 color scale from one color
  • Pick black or white text for a background color
  • Pick black or white text for a background color
About · Contact · Privacy