#D98FEF Color Information

Hex color code: #D98FEF

#D98FEF is a eye-catching magenta color. In RGB it is (217, 143, 239), and in HSL it is (286°, 75%, 75%). It is popular in mobile app design.

Try:
Color NameViolet
HEX
#D98FEF
RGB
217, 143, 239
HSL
286°, 75%, 75%
CMYK
9%, 40%, 0%, 6%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #D98FEF; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

217, 143, 239

Red: 217 / Green: 143 / Blue: 239

HSL

286°, 75%, 75%

Hue: 286° / Saturation: 75% / Lightness: 75%

CMYK

9%, 40%, 0%, 6%

Cyan: 9% / Magenta: 40% / Yellow: 0% / Key: 6%

What color is #D98FEF?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #D98FEF to RGB:

rgb(217, 143, 239)HEX to RGB Converter →

HEX to HSL

Convert #D98FEF to HSL:

hsl(286, 75%, 75%)RGB to HSL Converter →

HEX to CMYK

Convert #D98FEF to CMYK:

cmyk(9%, 40%, 0%, 6%)Color Converter →

Color Meaning and Usage

A striking magenta tone, #D98FEF has RGB (217, 143, 239) and HSL (286°, 75%, 75%). Known for evoking romance and playfulness, this magenta-red hue is a common choice for dashboards and SaaS products. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #D98FEF is #A6EF8F, creating high-contrast pairings. For softer combinations, try analogous colors like #A98FEF.

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

Contrast with #D98FEF

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #D98FEF?

#D98FEF is a striking magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #D98FEF?

#D98FEF in RGB is (217, 143, 239) - 217 red, 143 green, and 239 blue.

How to use #D98FEF in CSS?

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

What colors go well with #D98FEF?

#A6EF8F (complementary), #A98FEF (analogous), and #C24CE6 (lighter shade) work well with #D98FEF.