Free tool

Color Converter

Type or paste a color in any format, such as #FF6B35, rgb(255, 107, 53), hsl(16, 100%, 60%) or cmyk(0, 58, 79, 0), and get it in every other format right away.

#5B4CF0
  • HEX#5B4CF0
  • RGBrgb(91, 76, 240)
  • HSLhsl(245, 85%, 62%)
  • HSVhsv(245, 68%, 94%)
  • CMYKcmyk(62%, 68%, 0%, 6%)

Tints and shades

Tints are mixed with white and shades are mixed with black. Click any swatch to convert it.

Color harmonies

Combinations based on the color’s position on the color wheel. Learn how harmonies work.

Complementary

Analogous

Triadic

Split complementary

Tetradic (square)

How to use the color converter

The converter understands the most common ways of writing a color. You can type with or without the leading #, use three-digit shorthand like #F60, or paste a full CSS function straight from your stylesheet. You can even paste a plain list of three numbers such as 34, 139, 34 and it will be read as RGB. The swatch and every value update as you type.

If you would rather pick visually, click the small color square next to the input box to open your system’s color picker. To find colors in a photo or screenshot, use the image color picker instead.

How the conversions work

HEX to RGB

A HEX code is three pairs of hexadecimal (base-16) digits. Each pair is one channel, red, green or blue, on a scale from 00 (0) to FF (255). To convert, split the code into pairs and turn each one into a decimal number. For #5B4CF0: 5B = 5×16 + 11 = 91, 4C = 4×16 + 12 = 76, and F0 = 15×16 + 0 = 240, giving rgb(91, 76, 240).

RGB to HSL

Scale each RGB channel to between 0 and 1. Lightness is the average of the largest and smallest channel. Saturation is the difference between them, adjusted for lightness so that very light and very dark colors are not overstated. Hue is an angle on the color wheel (0° red, 120° green, 240° blue) worked out from whichever channel is strongest.

RGB to CMYK

Black (K) is calculated first as 1 minus the strongest RGB channel. Cyan, magenta and yellow are then the amount of each ink still needed after black is applied: C = (1 − R − K) ÷ (1 − K), and the same for M (using green) and Y (using blue).

The CMYK values here are a mathematical conversion. Real print colors depend on the printer, ink and paper, which are described by a color profile. For critical print work, use the CMYK values from your design software’s print profile or a Pantone guide. Find out why.

What are tints, shades and harmonies for?

A single brand color is rarely enough to design a full interface. You also need lighter versions for backgrounds and hover states, and darker versions for text and borders. The tint and shade scale gives you a consistent family of colors that all come from your original hue. Many design systems use exactly this kind of scale, often numbered from 50 to 900.

Color harmonies suggest colors that tend to work well alongside your base color. They come from classic color theory: complementary colors sit opposite each other on the wheel and create strong contrast, analogous colors sit next to each other and feel calm, and triadic colors are spaced evenly for a balanced but lively scheme. Treat them as starting points and adjust to taste.

Once you have a palette, check that your text stays readable with the contrast checker.