#D98AEF Color Information

Hex color code: #D98AEF

The hex color #D98AEF is a vivid magenta with RGB values of (217, 138, 239) and HSL of (287°, 76%, 74%). It is commonly used in modern UI design.

Try:
Color NameViolet
HEX
#D98AEF
RGB
217, 138, 239
HSL
287°, 76%, 74%
CMYK
9%, 42%, 0%, 6%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #D98AEF; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

217, 138, 239

Red: 217 / Green: 138 / Blue: 239

HSL

287°, 76%, 74%

Hue: 287° / Saturation: 76% / Lightness: 74%

CMYK

9%, 42%, 0%, 6%

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

What color is #D98AEF?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #D98AEF to RGB:

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

HEX to HSL

Convert #D98AEF to HSL:

hsl(287, 76%, 74%)RGB to HSL Converter →

HEX to CMYK

Convert #D98AEF to CMYK:

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

Color Meaning and Usage

A eye-catching magenta tone, #D98AEF has RGB (217, 138, 239) and HSL (287°, 76%, 74%). Known for evoking romance and playfulness, this magenta-red hue is popular for illustrations and friendly visual themes. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #D98AEF is #A0EF8A, creating high-contrast pairings. For softer combinations, try analogous colors like #A78AEF.

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

Contrast with #D98AEF

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #D98AEF?

#D98AEF is a eye-catching magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #D98AEF?

#D98AEF in RGB is (217, 138, 239) - 217 red, 138 green, and 239 blue.

How to use #D98AEF in CSS?

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

What colors go well with #D98AEF?

#A0EF8A (complementary), #A78AEF (analogous), and #C347E6 (lighter shade) work well with #D98AEF.