Color Code Converter Tool

Free color code converter for HEX, RGB, HSL, HSB and CMYK

Pick a color, or type any color code. Every format updates instantly, with matching harmonies, shades, contrast scores and a gradient you can copy.

Closest CSS color: Sky Blue

Color codes tap to copy

Fine-tune

199°
91%
64%

Color harmonies

Shades and tints 50 is lightest, 950 is darkest

Text contrast (WCAG)

AaWhite text
AaBlack text

Gradient builder

135°

Saved palette stays in this browser

Share this color

How to use the color code converter

  1. Press Pick color, use the eyedropper, or type a code in the box. HEX, RGB, HSL and color names all work.
  2. Tap any code card to copy it for your CSS or design tool.
  3. Drag the hue, saturation and lightness sliders to fine-tune.
  4. Open harmonies, shades, contrast and gradients, then tap a swatch to jump to it.
  5. Press Save color to build a palette and copy it as CSS variables.

Why use a color code converter?

The same color is written differently depending on where you use it. A converter removes the guesswork. Here is why designers, developers, marketers and students use one:

  • One color, every format: use HEX or RGB in CSS, HSL for easy tweaks, HSB in design software and CMYK as a starting point for print.
  • Consistent branding: keep a logo, website and brochure the same color without redoing the math.
  • Faster, error-free work: no manual calculation, and every value is one tap to copy.
  • Better accessibility: check contrast ratios so text stays readable for everyone.
  • Easier palettes: generate harmonies, shades, tints and gradients from a single starting color.
  • Match any color: turn a code from a client, a screenshot or an eyedropper pick into the format you need.
  • Learn color theory: move the hue, saturation and lightness sliders and watch every code change.

What each color format means

HEX

A six-digit code such as #4FC3F7. Pairs of digits set red, green and blue. It is the most common format in CSS and web design.

RGB

Red, green and blue values from 0 to 255, matching how screens mix light.

HSL

Hue (0 to 360 degrees on the color wheel), saturation and lightness. It is the easiest format for making lighter, darker or softer versions by hand.

HSB (HSV)

Hue, saturation and brightness, the model used by many color pickers in design software.

CMYK

Cyan, magenta, yellow and black, the inks used in printing. The value here is an approximation, so confirm with a printed proof.

Features

  • Live conversion between HEX, RGB, HSL, HSB and CMYK
  • Smart input that reads 3-digit HEX, rgb(), hsl() and CSS color names
  • Six harmony types and an 11-step shade and tint scale
  • WCAG contrast ratios with AA and AAA results
  • Gradient builder with one-tap CSS copy
  • Saved palette with CSS export, and shareable links that keep your color
  • Works on phones, with large touch targets and keyboard access

Frequently asked questions

Why use a color code converter?

Different tools speak different color languages. Websites use HEX, RGB or HSL, design software often uses HSB, and printers use CMYK. A converter gives you the same color in every format, so your brand looks consistent across web, apps and print. It saves time, avoids manual math errors, and helps you build palettes, check text readability and match colors from a client brief or a screenshot.

Which color formats can I convert?

HEX, RGB, HSL, HSB (HSV) and CMYK. Type or paste any of them, or a CSS color name such as tomato, and every other format updates instantly.

How do I check if a color is readable?

The contrast checker shows the WCAG contrast ratio of your color with white text and black text, and tells you whether it passes AA, AA Large or AAA.

Is the CMYK value exact for printing?

No. CMYK here is a standard screen-to-CMYK approximation. Printers use ICC profiles, so always check a proof before printing.

What are shades, tints and harmonies?

Tints mix your color with white, shades mix it with black. Harmonies are colors placed at set angles on the color wheel, such as complementary, analogous and triadic, that work well together.

Is my data stored or sent anywhere?

All conversions run in your browser. Saved colors stay in your browser's local storage on your device and are never uploaded.

More free tools