Ui State Palette

Generate a complete UI state palette from a brand hex.

Returns WCAG-compliant colours for: success, warning, error, info, hover, active, disabled, focus ring, and surface variants. All states are computed to maintain sufficient contrast against the supplied background. Each state includes hex, WCAG grade, and a one-line usage note.

post/palette/ui-states

Request

  • Base URL: https://api.colourmemory.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.colourmemory.com/palette/ui-states
  • Auth: none declared

Headers

x-api-keystring nullable
originstring nullable

Request body

brand_hexstring required
background_hexstring
dark_modeboolean

Response

Successful Response

unknown required

Changes

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