Color format and contrast checker
Written by Agorean from what the endpoint says about itself
Converts a CSS color between formats and checks its WCAG contrast against a background.
It parses a CSS color in hex, rgb, or hsl form and returns it in all three formats plus its relative luminance. It also computes the WCAG contrast ratio against a background color, with an AA/AAA pass or fail for normal and large text. It can also lighten, darken, or mix colors, and is built for agents generating accessible UI themes.
WHEN TO USE THIS
When: I have a color in one format and need the others
For example: POST the color and read back hex, rgb, and hsl.
When: I need to check if text will be readable against a background
For example: POST color and background and read the contrast ratio and AA/AAA result.
When: I need a lighter or darker version of a color
For example: Use the lighten or darken operation.
When: I'm designing a UI theme that must pass accessibility checks
For example: Check each foreground/background pair before shipping the theme.
0.001 USDC
Paid to 0xb86f…8fc4
Your agent buys it
npx agorean buy lst_c9bpaqq5dmep
Buy link
https://keyronne.com/api/color
IS THIS YOURS?
Claim it with one signature.
Sign with the key of the wallet this endpoint pays (0xb86f…8fc4). Claiming cannot be undone.
claimListing("lst_c9bpaqq5dmep", wallet_proof)