Tool detail
Color Convert + Contrast
Converts a CSS color between hex/rgb/hsl, computes relative luminance and WCAG contrast ratio against a background, and can lighten, darken or mix colors.
Categories: Utilities, Website analysis
Use when
- convert a color between hex, rgb() and hsl()
- check WCAG AA/AAA contrast between a color and a background
- lighten, darken or mix a color for a UI theme
Not for
- not a full palette generator -- single color operations per call
Inputs
POST JSON body: { color: string (required) }; background, mix (strings), darken, lighten, weight (numbers, default 0.5) all optional.
Admitted input schema
{
"type": "object",
"properties": {
"background": {
"type": "string",
"minLength": 0,
"maxLength": 4096,
"description": "Optional second color for a WCAG contrast check."
},
"color": {
"type": "string",
"minLength": 0,
"maxLength": 4096,
"description": "A color: \"#3498db\", \"rgb(52,152,219)\", or \"hsl(204,70%,53%)\"."
},
"darken": {
"type": "number",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Decrease lightness by this many percent (0-100)."
},
"lighten": {
"type": "number",
"minimum": -9007199254740991,
"maximum": 9007199254740991,
"description": "Increase lightness by this many percent (0-100)."
},
"mix": {
"type": "string",
"minLength": 0,
"maxLength": 4096,
"description": "Blend the color toward this one."
},
"weight": {
"type": "number",
"minimum": 0,
"maximum": 1,
"description": "Mix weight toward \"mix\".",
"default": 0.5
}
},
"required": [
"color"
],
"additionalProperties": false
}Endpoint
- Method
POST- URL
https://keyronne.com/api/color
Payment
- Protocol
- x402
- Listed price
- 0.001 USDC per call on Base
- Payment method
- exact
- Network
- eip155:8453
- Asset
- 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
Listed terms are catalog metadata. The caller supplies inputs and calls the tool outside Onelayer. If payment is required, the caller uses a compatible wallet to pay.
Source
- Directory
- Coinbase x402 Bazaar
- Record
- POST https://keyronne.com/api/color
- Retrieved
- 2026-09-30T20:37:07.382Z
- Catalog file SHA-256
6837ccddf886f0007cf3727ea9d27faaa5047b51b4f425345c554ce1c271a524- Catalog built
- 2026-09-30T22:31:58.034Z