Color Converter & Palettes

Convert colors between HEX, RGB, HSL, HSV and CMYK, build complementary and triadic palettes, and check contrast.

HEX, rgb() or hsl() — paste it however you have it
HEX
#E8A020
RGB
rgb(232, 160, 32)
HSL
hsl(38, 81%, 52%)
HSV / HSB
38°, 86%, 91%
CMYK
0, 31, 86, 9

Color harmonies

Tap a swatch to make it the main color.

Complementary
Analogous
Triadic
Split complementary
Tetradic (square)
Tints (adding white)
Shades (adding black)

Contrast

On white
2.22 : 1
Fails
On black
9.48 : 1
AAA

Color formats

  • HEX — six hexadecimal digits, two each for red, green and blue. Used in web design and most design apps.
  • RGB — red, green and blue light from 0 to 255.
  • HSL — hue (0–360° around the wheel), saturation and lightness. Easiest for making lighter and darker versions of a color.
  • HSV / HSB — hue, saturation and value/brightness, as in Photoshop and Procreate pickers.
  • CMYK — cyan, magenta, yellow and black ink percentages for print. A straight conversion; real printing depends on the paper and printer profile.

Color harmonies

Harmonies are hues at fixed angles on the color wheel, keeping the same saturation and lightness:

  • Complementary: opposite (180°). Maximum contrast.
  • Analogous: neighbors 30° either side. Calm and cohesive.
  • Triadic: three hues 120° apart. Balanced and lively.
  • Split complementary: the two hues beside the complement (150° and 210°). Contrast with less tension.
  • Tetradic: four hues 90° apart. Rich, but let one color lead.

This is the digital (RGB) color wheel. Painters working with the traditional red-yellow-blue wheel will find some complements differ — on an RYB wheel, red’s complement is green rather than cyan. The Color Wheel shows both.

Tints and shades

A tint is the color mixed toward white, a shade toward black. Here they’re made by stepping HSL lightness, which keeps the hue steady.

Common questions

How do I convert HEX to RGB?

Split the six digits into three pairs and read each as a base-16 number. #E8A020 is E8 = 232, A0 = 160, 20 = 32, so rgb(232, 160, 32).

What is the complementary color?

The color directly opposite on the color wheel — the hue turned 180°. Complementary pairs give the strongest contrast, like orange and blue.

Why does my print look different from the screen?

Screens mix light (RGB) and printers mix ink (CMYK), and ink can’t reach some bright screen colors. The CMYK numbers here are a simple conversion; your printer’s color profile decides the real result, so print a proof.

What contrast ratio do I need for text?

WCAG asks for at least 4.5 : 1 for body text (AA) and 3 : 1 for large text. 7 : 1 meets the stricter AAA level.

What is the difference between HSL and HSV?

Both describe hue and saturation. HSL’s lightness runs from black through the pure color to white; HSV’s value runs from black to the pure color. Photoshop’s color picker uses HSB, which is the same as HSV.

MathApps is free and ad-free for now. If it helped, buy us some art supplies — supporters never see ads, even if we add them.