Color Converter
Convert colors between HEX, RGB, HSL, and CMYK instantly. Free online color picker with WCAG contrast checker and palette generator.
Updated April 2026
Active Preview
#197FE6
Complementary Colors
Format Conversions
Tip: Click a complementary color swatch to use it. Press Shift+Enter to copy the HEX value.
How to use the color converter
One value, four formats at once — plus a built-in contrast checker
1. Pick or type a color
Use the native color picker, or type a 6-digit hex code like `#3A86FF` directly into the field.
2. Copy the format you need
HEX, RGB, HSL, and CMYK update instantly — click the copy icon next to any of them.
3. Save to a palette and export
"Save to Palette" collects colors as you go; "Export Palette" downloads a ready-to-use CSS file with custom properties.
What this color converter does
Accurate conversion between HEX, RGB, HSL, and CMYK
Built-in WCAG contrast checker
Automatically compares your color against white and tells you whether it passes WCAG AA (4.5:1) and AAA (7:1).
Complementary colors on click
Explore harmonies from four generated swatches at +90°, +150°, +180°, and +270° around the base hue.
CSS custom properties export
Collect colors into a palette and download a finished CSS file with --palette-* variables in one click.
Exact, rounding-free precision
Runs the same formulas browsers use internally, avoiding the small rounding errors common in manual conversions.
Color formats explained
What each notation means and where it's used
When you'll reach for this tool
The scenarios that come up most often
Design-to-code handoff
Designers hand off colors in HEX; developers often need RGB for color() functions or HSL for dynamic theming and hover states.
Accessibility audits
Quickly check whether a brand's primary color passes WCAG AA contrast before it ships on a button or headline.
Prepping assets for print
Convert on-screen colors to CMYK before sending logos or brochures to a print shop, so nothing shifts unexpectedly.
Building a design system
Save every brand color into one palette, then export the whole set as CSS custom properties in a single download.
Common mistakes
Assuming on-screen RGB matches printed CMYK exactly
Some vivid screen blues and greens fall outside the printable gamut — always preview the CMYK values before sending files to a printer.
Misreading HSL lightness at 50%
50% lightness is the pure hue; values above it lighten toward white, below it darken toward black — it's not the same axis as HSV brightness.
Forgetting the `#` when pasting hex
Hex codes work here with or without the leading #, but keep the habit — plenty of other tools and CSS itself require it.
Why use this color converter
It shows HEX, RGB, HSL, and CMYK at the same time, so there's no bouncing between four separate single-format converters to get every value you need.
The built-in WCAG contrast checker saves an extra step: you already know whether a color works for text before you leave the conversion screen.
Frequently asked questions
Type or paste a 6-digit hex code and the tool shows the RGB equivalent instantly, no calculation needed. For example, #FF8000 converts to rgb(255, 128, 0) — the pairs of hex digits map directly to the red, green, and blue channels.
Further reading
Complete reference for every CSS color format, including HEX, RGB, HSL, and newer notations.
The official W3C guidance behind the minimum contrast ratios this tool checks against.
The formal spec covering every color model supported by modern browsers.
Related Tools
- Color Contrast Checker Design Free color contrast checker — verify WCAG 2.2 AA and AAA compliance instantly. Live preview, color blindness simulation, and accessible color suggestions....
- Color Palette Generator Design Generate harmonious color palettes from any base color. Choose Analogous, Complementary, Triadic or Tetradic harmony — export as CSS variables or JSON.
- Color Palette from Image Design Extract color palettes from any image — get HEX, RGB, HSL codes and export as CSS variables, Tailwind config, JSON, or PNG. 100% client-side, no upload.
- CSS Box Shadow Generator — Neumorphism, Glassmorphism & Tailwind Design Free CSS box shadow generator with live preview. Build shadows, neumorphism, glassmorphism effects. Export to CSS, Tailwind, or CSS variables. No signup.
- CSS Flexbox Generator Design Free CSS Flexbox generator: live preview, Tailwind & CSS dual output, 10 preset layouts, contextual warnings, React/JSX export. No signup required.