compute

Convert a colour between hex, RGB, HSL and OKLCh, and check WCAG contrast.

Parses any CSS colour notation and re-emits it in every format including OKLCh. Supply against to get the WCAG 2.1 contrast ratio and pass/fail verdicts for normal and large text — the check that decides whether an interface is legible, computed rather than eyeballed.

get/v1/color/convert

Request

  • Base URL: https://fluentedi.com
  • URL: https://fluentedi.com/v1/color/convert
  • Auth: none declared

Query parameters

colorstring required

Colour in hex, rgb(), hsl(), or a CSS name.

Example:#3b82f6
againststring

Optional second colour to compute a WCAG contrast ratio against.

Example:#ffffff
shadesboolean

Also return a 50-950 lightness scale built from this hue.

Response

Tool result.

okboolean
toolstring
resultobject

Tool-specific result payload.

Changes

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