#D798C7 Color Information

Hex color code: #D798C7

A subtle magenta shade, #D798C7 appears as (215, 152, 199) in RGB and (315°, 44%, 72%) in HSL. It is often used for branding and logos.

Try:
Color NamePlum
HEX
#D798C7
RGB
215, 152, 199
HSL
315°, 44%, 72%
CMYK
0%, 29%, 7%, 16%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

New Feature
.badge { background-color: #D798C7; 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 #D798C7; background-color: #D798C715; }

Alert / Toast

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

Link / Accent

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

a { color: #D798C7; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

215, 152, 199

Red: 215 / Green: 152 / Blue: 199

HSL

315°, 44%, 72%

Hue: 315° / Saturation: 44% / Lightness: 72%

CMYK

0%, 29%, 7%, 16%

Cyan: 0% / Magenta: 29% / Yellow: 7% / Key: 16%

What color is #D798C7?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #D798C7 to RGB:

rgb(215, 152, 199)HEX to RGB Converter →

HEX to HSL

Convert #D798C7 to HSL:

hsl(315, 44%, 72%)RGB to HSL Converter →

HEX to CMYK

Convert #D798C7 to CMYK:

cmyk(0%, 29%, 7%, 16%)Color Converter →

Color Meaning and Usage

A gentle magenta tone, #D798C7 has RGB (215, 152, 199) and HSL (315°, 44%, 72%). Known for evoking romance and playfulness, this magenta-red hue is popular in mobile app design. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #D798C7 is #98D7A8, creating high-contrast pairings. For softer combinations, try analogous colors like #C798D7.

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

Contrast with #D798C7

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #D798C7?

#D798C7 is a gentle magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #D798C7?

#D798C7 in RGB is (215, 152, 199) - 215 red, 152 green, and 199 blue.

How to use #D798C7 in CSS?

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

What colors go well with #D798C7?

#98D7A8 (complementary), #C798D7 (analogous), and #C261A9 (lighter shade) work well with #D798C7.