#9840CE Color Information

Hex color code: #9840CE

#9840CE is a balanced purple color. In RGB it is (152, 64, 206), and in HSL it is (277°, 59%, 53%). It is frequently seen in web interfaces.

Try:
Color NameDark Orchid
HEX
#9840CE
RGB
152, 64, 206
HSL
277°, 59%, 53%
CMYK
26%, 69%, 0%, 19%

Shades

CSS Usage
color: #9840CE;
background-color: #9840CE;
border-color: #9840CE;
box-shadow: 0 0 10px #9840CE;
border: 2px solid #9840CE;
Tailwind Usage
bg-[#9840CE]
text-[#9840CE]
border-[#9840CE]
shadow-[0_0_10px_9840CE]

Generate Gradient

Gradient CSS
background: linear-gradient(90deg, #9840CE, #FF5733);

Preview in UI

Button

.btn-primary { background-color: #9840CE; color: #FFFFFF; }

Badge

New Feature
.badge { background-color: #9840CE; color: #FFFFFF; }

Text Highlight

The quick brown fox jumps over the lazy dog. highlighted text example shows how the color looks as a text highlight.

Card

Card Title

This card uses your color as a border accent.

.card-accent { border: 2px solid #9840CE; background-color: #9840CE15; }

Alert / Toast

This is an alert using your color as accent.
.alert { background-color: #9840CE20; border-left: 4px solid #9840CE; }

Link / Accent

This is a paragraph with a link using your color. The color can be applied to interactive elements.

a { color: #9840CE; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #9840CE in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

152, 64, 206

Red: 152 / Green: 64 / Blue: 206

HSL

277°, 59%, 53%

Hue: 277° / Saturation: 59% / Lightness: 53%

CMYK

26%, 69%, 0%, 19%

Cyan: 26% / Magenta: 69% / Yellow: 0% / Key: 19%

What color is #9840CE?

#9840CE is a magenta-red hue associated with romance and playfulness.

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #9840CE to RGB:

rgb(152, 64, 206)HEX to RGB Converter →

HEX to HSL

Convert #9840CE to HSL:

hsl(277, 59%, 53%)RGB to HSL Converter →

HEX to CMYK

Convert #9840CE to CMYK:

cmyk(26%, 69%, 0%, 19%)Color Converter →

Color Meaning and Usage

A neutral purple tone, #9840CE has RGB (152, 64, 206) and HSL (277°, 59%, 53%). Known for evoking romance and playfulness, this magenta-red hue is widely used in graphic design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #9840CE is #77CE40, creating high-contrast pairings. For softer combinations, try analogous colors like #5140CE.

Use #9840CE in CSS: color: #9840CE or background-color: #9840CE. Create palettes with Color Palette Generator or check contrast with Contrast Checker.

Contrast with #9840CE

Sample text on this color - The quick brown fox jumps over the lazy dog.

Contrast Ratio: 3.96:1
WCAG AA: Fail
WCAG AAA: Fail

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #9840CE?

#9840CE is a neutral purple color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #9840CE?

#9840CE in RGB is (152, 64, 206) - 152 red, 64 green, and 206 blue.

How to use #9840CE in CSS?

Use #9840CE directly in your CSS properties like color or background-color.

What colors go well with #9840CE?

#77CE40 (complementary), #5140CE (analogous), and #6E289A (lighter shade) work well with #9840CE.