Color Converter
Supports automatic recognition and conversion between HEX, RGB, HSL, and CMYK; includes built-in color picker, gradient generator, color schemes, and WCAG Contrast Checker. All processing is performed locally in the browser; no data is uploaded to the server.
🖌 Select a color from the color palette
🌈 Tints & Shades
🎨 Color Schemes
⭐ Favorite Color Palette
📜 History
♿ WCAG Contrast Checker
What is Color Converter?
Color Converter is an online tool that helps developers freely convert between different color formats. The most common web color formats include HEX (hexadecimal), RGB (Red, Green, Blue), HSL (Hue, Saturation, Lightness), and CMYK (Cyan, Magenta, Yellow, Key/Black). This tool automatically detects the input format and outputs all four formats simultaneously, significantly improving color matching efficiency.
Color Format Guidelines
- HEX — Hexadecimal color code, starting with
#e.g.#ff6600. The most commonly used color format in CSS. - RGB — RGB (Red, Green, Blue) representation, e.g.
rgb(255, 102, 0). Each component ranges from 0 to 255. - HSL — Hue (0~360°), Saturation (0~100%), Lightness (0~100%) - the most intuitive color model.
- CMYK — Cyan, Magenta, Yellow, Key (Black) - the standard format for printing.
- CSS Color Names — 140+ CSS named colors, e.g.
rebeccapurpleandcoral.
Common Use Cases
- UI Design — Designers provide HEX; developers need HSL for adjusting brightness
- Button Status — Use Tints & Shades to generate hover/active state shades
- Brand Color Scheme — Use Color Schemes to generate Complementary/Triadic palettes
- Accessibility Testing — Use WCAG Contrast Checker to ensure text readability
- CSS Gradients — Use Favorites to prepare colors for 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
How to use
- 1. Enter a colour in any format
- 2. Read the conversions
- 3. Check contrast against your background
Example
`#2563eb` → rgb(37, 99, 235), hsl(221, 83%, 53%) and a contrast ratio
FAQ
Can I use the converted values in CSS variables?
Yes. Paste the HEX or RGB value into a custom property such as `--color-primary: #2563eb;`.
Are CMYK values print-ready?
They are approximations; use your printer's ICC profile for production.