Color contrast checker
Check whether a text and background color pair meets WCAG AA or AAA.
Try a hex code, a name like tomato, or an oklch() value. Copy the format you need straight into a stylesheet.
Example
| Hex | #ff6347 | |
|---|---|---|
| RGB | rgb(255 99 71) | |
| HSL | hsl(9.13 100% 63.92%) | |
| HWB | hwb(9.13 27.84% 0%) | |
| Lab | lab(62.99 59.36 47.88) | |
| LCH | lch(62.99 76.27 38.89) | |
| OKLab | oklab(0.69622 0.16523 0.10454) | |
| OKLCH | oklch(0.69622 0.19552 32.32) | |
| Display P3 | color(display-p3 0.9283 0.4286 0.3199) | |
| Named color | tomato (exact) |
{
"hex": "#ff6347",
"alpha": 1,
"rgb": {
"r": 255,
"g": 99,
"b": 71
},
"hsl": {
"h": 9.13,
"s": 100,
"l": 63.92
},
"hwb": {
"h": 9.13,
"w": 27.84,
"b": 0
},
"lab": {
"l": 62.99,
"a": 59.36,
"b": 47.88
},
"lch": {
"l": 62.99,
"c": 76.27,
"h": 38.89
},
"oklab": {
"l": 0.69622,
"a": 0.16523,
"b": 0.10454
},
"oklch": {
"l": 0.69622,
"c": 0.19552,
"h": 32.32
},
"displayP3": {
"r": 0.9283,
"g": 0.4286,
"b": 0.3199
},
"css": {
"hex": "#ff6347",
"rgb": "rgb(255 99 71)",
"hsl": "hsl(9.13 100% 63.92%)",
"hwb": "hwb(9.13 27.84% 0%)",
"lab": "lab(62.99 59.36 47.88)",
"lch": "lch(62.99 76.27 38.89)",
"oklab": "oklab(0.69622 0.16523 0.10454)",
"oklch": "oklch(0.69622 0.19552 32.32)",
"displayP3": "color(display-p3 0.9283 0.4286 0.3199)"
},
"gamut": {
"srgb": true,
"displayP3": true
},
"name": {
"nearest": "tomato",
"exact": true
}
}Copy this command to run the request in your terminal. It updates as you edit the input.
For higher limits, get a free API key and add -H "Authorization: Bearer $KAMINEKO_API_KEY".
/v1/colorcurl 'https://api.kamineko.dev/v1/color?value=tomato'Set KAMINEKO_API_KEY to your key and run this command to connect Claude Code. Try the color tool with this prompt.
What's #c83726 in OKLCH?
https://api.kamineko.dev/mcpclaude mcp add --transport http kamineko \
https://api.kamineko.dev/mcp \
--header "Authorization: Bearer $KAMINEKO_API_KEY"Check whether a text and background color pair meets WCAG AA or AAA.
Complementary, analogous, triadic, and other harmonies from one color.
Mix a base color toward white and black in even steps.
A 50–950 scale from one brand color, for a design system.