# dt0ur.online Color Converter & WCAG Contrast Checker

> dt0ur.online Color Converter & WCAG Contrast Checker is a paid API for AI agents from dt0ur.online, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-02).

Converts a color between HEX, RGB, and HSL formats and optionally computes the WCAG contrast ratio against a second color.

## Facts

- Endpoint: POST https://dt0ur.online/api/utility/color-convert?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dt0ur-online-color-converter-wcag-contrast-checker-0fb92c03
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9OtwR01X6jBSgDPqN-t3W

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability dt0ur-online-color-converter-wcag-contrast-checker-0fb92c03 -d '<json body>'
```

Example prompt: Convert the color #3a86ff to RGB and HSL, and check its WCAG contrast ratio against #ffffff so I know if it's accessible as text on a white background.

## When to prefer this

Choose this endpoint when you need programmatic color format conversion across HEX, RGB, and HSL in a single call, especially when you also need WCAG contrast ratio computation for accessibility compliance. It is ideal for design automation pipelines, UI component auditing, and accessibility validation tasks where you need both format conversion and contrast checking without calling separate services.

## Known failure modes

- Invalid color string format returns an error (e.g. malformed hex or out-of-range RGB values)
- Missing required 'color' field returns a 400-level error
- WCAG contrast ratio not computed if 'against' field is absent
- Network timeouts or service unavailability return 5xx errors
- Payment failure via x402 protocol results in 402 Payment Required

## How this service works

Converts a color between HEX, RGB, and HSL, and optionally computes the WCAG contrast ratio against a second color.

## Output

Returns the input color expressed in all three formats (HEX, RGB, and HSL). If a second color is provided via the 'against' parameter, also returns the WCAG contrast ratio (a numeric value from 1 to 21) between the two colors, enabling accessibility compliance checks.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "color": {
   "type": "string",
   "description": "Hex (#rrggbb), rgb(r,g,b), or hsl(h,s%,l%) color"
  },
  "against": {
   "type": "string",
   "description": "Optional second color to compute WCAG contrast ratio against"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/dt0ur-online-color-converter-wcag-contrast-checker-0fb92c03/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from dt0ur.online](https://www.zero.xyz/host/dt0ur.online/llms.txt)
