The playground

Try any of 919 endpoints — live.

Pick an endpoint, load a working example, tweak the params, and send — no signup to try. Results render the way the data deserves; raw JSON, headers & code are one tab away.

Playground demo key · api.reefapi.com
post/dev-utils/v1/color1 credit

Parse any CSS color (hex/rgb()/hsl()/name) → every format + CSS3 name + luminance; optional second color → WCAG 2.x contrast ratio + AA/AAA.

Working example
Parameters

The color: '#1a2b3c', '#abc', 'rgb(26,43,60)', 'hsl(210,40%,17%)' or a CSS3 name ('rebeccapurple').

Optional second color — returns the WCAG contrast ratio + AA/AAA pass flags for normal/large text.

request preview
curl -X POST https://api.reefapi.com/dev-utils/v1/color \
  -H "x-api-key: $REEF_KEY" \
  -H "content-type: application/json" \
  -d '{"input":"#1a2b3c","contrast_with":"#ffffff"}'

Hit Send to run this endpoint live.