Skip to content

Color picker

Pick any color and get its HEX, RGB, HSL and OKLCH values, shades and matching colors.

Current color#e879f9

#e879f9 is a light, vivid purple, close to violet; black text reads best on it.

Contrast with white Fails AA
2.46:1
Contrast with black Passes AAA
8.53:1

Check contrast with any color

Values

  • HEX#e879f9
  • RGBrgb(232, 121, 249)
  • HSLhsl(292, 91%, 73%)
  • OKLCHoklch(74.8% 0.207 322.2)
HSB and CMYK values
  • HSB / HSVhsb(292, 51%, 98%)
  • CMYKC7 M51 Y0 K2

Shades and tints

Harmonies

Harmony

Opposite on the color wheel: strong contrast.

The complementary color of #e879f9 is #8af979, close to pale green.

Click any swatch to make it the current color.

Color models

One color, many ways to write it

Screens mix red, green and blue light, and every format below is a different way to describe that mix:

  • HEX (#e879f9): the red, green and blue amounts in base 16. The most common format on the web.
  • RGB (rgb(232, 121, 249)): the same amounts from 0 to 255, easy to read and to change in code.
  • HSL (hsl(292, 91%, 73%)): hue (position on the color wheel), saturation and lightness. Handy for tweaking a color by hand.
  • HSB/HSV: hue, saturation and brightness, the model used by the color pickers in Photoshop and Figma.
  • OKLCH (oklch(74.8% 0.207 322.2)): lightness, chroma and hue in a perceptually even space. Equal lightness numbers really look equally light, which makes it the best choice for design systems.
  • CMYK (C7 M51 Y0 K2): the percentages of cyan, magenta, yellow and black ink, for print. A rough guide; printers use color profiles.

Our guide to HEX, RGB, HSL and OKLCH goes deeper: alpha in hex codes, the modern CSS syntax, and why HSL’s lightness can mislead. No eyedropper button in your browser? See how to pick a color from your screen with the tools built into macOS and Windows.

Shades, tints and harmonies

The shade scale keeps your color's hue and intensity and changes only its lightness, from 50 (almost white) to 800 (very dark), just like the scales in popular design systems. Harmonies turn the hue around the classic color wheel, the one artists and most color tools use, so blue's complement is yellow and teal's is maroon. Grays, black and white have no hue, so they have no complement.

Want to know which colors go with yours, or build a full palette? Try the color pairer and palette generator. Using a color for text? Check it with the contrast checker first.

Frequently asked questions

How do I pick a color from my screen?

Click "Pick from screen" and then click anywhere on your screen, even outside the browser. This uses the eyedropper built into Chrome, Edge and Opera on desktop. In other browsers, the color swatch opens your system's color picker, which often has its own eyedropper.

What is the difference between HEX, RGB and HSL?

They describe the same colors in different ways. HEX and RGB give the amounts of red, green and blue (HEX in base 16). HSL describes hue, saturation and lightness, which is easier to adjust by hand: change the lightness to make a color lighter or darker.

What is OKLCH and why use it?

OKLCH is a modern color model designed to match how people perceive color. Colors with the same lightness value really look equally light, which makes it great for building shade scales and evenly balanced palettes. All modern browsers support oklch() in CSS.

How do I find the complementary color of a color?

Pick or type the color and choose Complementary under Harmonies. ColorPeekr turns its hue 180 degrees around the classic color wheel and keeps its saturation and lightness, so blue gives yellow, teal gives maroon and red gives cyan. Grays, black and white have no hue, so they have no complement.

Are the CMYK values accurate for printing?

They are a straightforward mathematical conversion, useful as a starting point. Real print colors depend on the paper, inks and color profile, so ask your printer for a proof or use their profile in your design software.

Which color formats can I type in?

Hex codes (#f0c, #ff00cc, with or without #), rgb(), hsl(), and anything else your browser understands in CSS, including color names like teal or rebeccapurple and oklch() values.

Is it free to use the colors commercially?

Of course. Colors can't be owned, and everything you create here is yours to use anywhere, with no attribution needed.