Color Converter
Convert colors between HEX, RGB, HSL, HSV, CMYK, and HWB. Includes tints & shades, WCAG contrast ratio, CSS snippets, and color history.
Last updated: March 26, 2026
Find this tool useful? Support the project to keep it free!
Buy me a coffeeWhat is Color Converter?
A professional color converter supporting 6 formats: HEX (web standard), RGB (screen mixing), HSL (intuitive lightness/saturation control), HSV/HSB (used in Figma and Photoshop), CMYK (print design), and HWB (modern CSS4 format). All formats stay in sync as you edit. Additional features include a native color picker, tints & shades generator, WCAG 2.1 contrast ratio checker, smart paste that auto-detects any format (including CSS named colors like "tomato"), color history, and a ready-to-copy CSS variables snippet.
How to Use Color Converter
Paste any color in the top input — HEX, RGB, HSL, or even a CSS name like "coral"
Or click the color swatch to open the native OS color picker
All 6 format cards update instantly and bidirectionally
Use the gradient sliders to fine-tune Hue, Saturation, Lightness, etc.
Click any swatch in the Tints & Shades strip to apply lighter/darker variants
Check WCAG contrast ratios for white and black text in the preview
Copy any format with one click — or grab the full CSS variables block
Common Use Cases
- Converting designer HEX specs to HSL for CSS custom properties
- Getting CMYK values from web colors for print-ready artwork
- Checking WCAG AA/AAA contrast compliance for accessible design
- Generating a complete tint/shade scale for a design system
- Finding the HSV equivalent of a color to match Figma's color picker
- Translating brand colors across all formats at once
- Using CSS named colors and converting them to hex for code
Frequently Asked Questions
What is the difference between HSL and HSV?
What is HWB and why use it?
What does the WCAG contrast ratio mean?
Why use CMYK for web colors?
What formats does the paste input accept?
How This Tool Works
All color conversions are pure mathematical functions running synchronously in the browser — no libraries, no server calls. HEX↔RGB is a direct bitwise parse. RGB→HSL and RGB→HSV use standard normalisation formulas. RGB→CMYK uses the CMY subtractive model with black-key extraction. The WCAG 2.1 contrast ratio is computed from the relative luminance formula (sRGB gamma-corrected). Tints and shades are generated by interpolating the HSL lightness value toward 100% (white) and 0% (black) across 10 equal steps. Smart paste uses a cascade of regex patterns to detect the input format before conversion.
Technical Stack