Color Converter

Supports auto-detection and conversion between HEX, RGB, HSL, and CMYK, with a built-in color picker wheel, tints & shades, color schemes, and WCAG contrast checker. All processing is done locally in your browser — no data is uploaded to any server.

HEX #3b82f6 Copy
RGB rgb(59, 130, 246) Copy
HSL hsl(217, 91%, 60%) Copy
CMYK cmyk(76%, 47%, 0%, 4%) Copy

Color Picker

217
91
60

Tints & Shades

Color Schemes

History

No history

Favorites

No favorites yet. Click the heart to favorite the current color.

WCAG Contrast Checker

Select a background and foreground color to check WCAG accessibility compliance

What is a Color Converter?

A Color Converter is an online tool that helps developers freely convert between different color formats. The most commonly used color formats in web development include HEX (hexadecimal), RGB (Red-Green-Blue), HSL (Hue-Saturation-Lightness), and CMYK (Cyan-Magenta-Yellow-Key for print). This tool supports automatic input format detection and simultaneously outputs all four formats, greatly improving your color workflow efficiency.

Color Format Reference

  • HEX — Hexadecimal color code, prefixed with #, e.g. #ff6600. The most widely used color format in CSS.
  • RGB — Red, Green, Blue representation, e.g. rgb(255, 102, 0). Each channel ranges from 0 to 255.
  • HSL — Hue (0-360°), Saturation (0-100%), Lightness (0-100%). The most intuitive color model for humans.
  • CMYK — Cyan, Magenta, Yellow, Key (black). The standard format for the printing industry.
  • CSS Named Colors — Over 140 color names defined by W3C, such as rebeccapurple and coral.

Common Use Cases

  • UI Design — Designers provide HEX values; developers need HSL to adjust lightness and darkness
  • Button States — Use Tints & Shades to generate hover/active color scales
  • Brand Colors — Generate complementary, triadic, and other color scheme combinations
  • Accessibility Testing — Use the WCAG contrast checker to ensure text readability
  • CSS Gradients — Save palettes to favorites for later gradient generation

WCAG Contrast Standards

  • AA Standard — Normal text ≥ 4.5:1, large text ≥ 3:1
  • AAA Standard — Normal text ≥ 7:1, large text ≥ 4.5:1
Tip: Drag on the color wheel to pick a color, or type a value directly. The input field supports auto-detection of HEX, RGB, HSL, CMYK, and CSS named colors. Click any converted value to copy it to your clipboard.

🙏 帮我们做得更好

我们是刚上线的编程教程站,几个人的小团队,精力有限。页面虽经检查,难免还有疏漏——链接失效、排版错乱、内容有误、语言生硬……

如果您发现了,麻烦告诉我们,我们会在收到反馈后第一时间进行修复,再次感谢您的光临 🙏