Your files stay on your device

# Color Converter & Contrast Checker

Convert a color between HEX, RGB, HSL, and HSV, and check its contrast with another.
sRGB in (CSS Color 4 syntax + named colors) · HSL/HSV/HWB/CMYK are re-expressions · OKLab/OKLCH computed outInsert sampleRandomClearForeground / text colorBackground color (for the contrast check)

Enter both colors to see the contrast ratio.

No color yet.
Paste several colors, one per line

Accepts #hex (3/4/6/8 digits), rgb()/hsl() in comma or CSS Color 4 space-separated syntax (slash alpha, %, deg/grad/rad/turn), hwb(), cmyk(), and named CSS colors. Channels outside CSS ranges (like rgb(300, 0, 0)) are refused rather than clamped. color() spaces beyond sRGB are named in the refusal, not guessed. The fg/bg pair rides the URL (nothing else) so a checked pair can be shared.

## More color tools

- [QR code generator](/qr/generator)
- [URL encoder](/encoding/url-encoder)
[All color tools](/color)

---

Canonical HTML: https://nutter.tools/color/converter/
Markdown version: https://nutter.tools/color/converter/index.md
Plain-text version: https://nutter.tools/color/converter/index.txt
Agent index: https://nutter.tools/llms.txt

