#D878E5 Color Information

Hex color code: #D878E5

A subtle magenta shade, #D878E5 appears as (216, 120, 229) in RGB and (293°, 68%, 68%) in HSL. It is popular in mobile app design.

Try:
Color NameViolet
HEX
#D878E5
RGB
216, 120, 229
HSL
293°, 68%, 68%
CMYK
6%, 48%, 0%, 10%

Shades

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

Generate Gradient

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

Preview in UI

Button

.btn-primary { background-color: #D878E5; color: #000000; }

Badge

New Feature
.badge { background-color: #D878E5; color: #000000; }

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 #D878E5; background-color: #D878E515; }

Alert / Toast

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

Link / Accent

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

a { color: #D878E5; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

Relationships based on the position of #D878E5 in the color wheel.

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

216, 120, 229

Red: 216 / Green: 120 / Blue: 229

HSL

293°, 68%, 68%

Hue: 293° / Saturation: 68% / Lightness: 68%

CMYK

6%, 48%, 0%, 10%

Cyan: 6% / Magenta: 48% / Yellow: 0% / Key: 10%

What color is #D878E5?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #D878E5 to RGB:

rgb(216, 120, 229)HEX to RGB Converter →

HEX to HSL

Convert #D878E5 to HSL:

hsl(293, 68%, 68%)RGB to HSL Converter →

HEX to CMYK

Convert #D878E5 to CMYK:

cmyk(6%, 48%, 0%, 10%)Color Converter →

Color Meaning and Usage

A balanced magenta tone, #D878E5 has RGB (216, 120, 229) and HSL (293°, 68%, 68%). Known for evoking romance and playfulness, this magenta-red hue is typically applied in digital products. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #D878E5 is #83E576, creating high-contrast pairings. For softer combinations, try analogous colors like #A076E5.

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

Contrast with #D878E5

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

Contrast Ratio: 7.74:1
WCAG AA: Pass
WCAG AAA: Pass

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #D878E5?

#D878E5 is a balanced magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #D878E5?

#D878E5 in RGB is (216, 120, 229) - 216 red, 120 green, and 229 blue.

How to use #D878E5 in CSS?

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

What colors go well with #D878E5?

#83E576 (complementary), #A076E5 (analogous), and #C636D9 (lighter shade) work well with #D878E5.