Color converter

Turn any color into HEX, RGB, HSL, OKLCH, and CMYK, and check the contrast ratio.

Runs in browser

Use from your agent

Streamable HTTP at https://benchline.fabwaseem.com/mcp. No key. The tool name is convert_color.

mcp.jsonjson
1{
2 "mcpServers": {
3 "benchline": {
4 "url": "https://benchline.fabwaseem.com/mcp"
5 }
6 }
7}
tools/calljson
1{
2 "jsonrpc": "2.0",
3 "id": 1,
4 "method": "tools/call",
5 "params": {
6 "name": "convert_color",
7 "arguments": {
8 "color": "example",
9 "background": "#ffffff"
10 }
11 }
12}

How it works

Free color converter and contrast checker. Paste HEX, RGB, HSL, OKLCH, CMYK, or a CSS color name and read every format back. The contrast ratio uses WCAG 2, with AA and AAA flags for normal and large text, plus the nearest Tailwind token.

  1. 01

    Paste a color

    Use HEX, rgb(), hsl(), oklch(), cmyk(), or a CSS name. The swatch and every format update together.

  2. 02

    Copy the format you need

    Each row has its own copy button for HEX, RGB, HSL, OKLCH, and CMYK.

  3. 03

    Check the contrast

    Set a background. The ratio and the AA and AAA flags use WCAG 2, after flattening any transparency.

FAQ