#D98BF2 Color Information

Hex color code: #D98BF2

A vivid magenta shade, #D98BF2 appears as (217, 139, 242) in RGB and (285°, 80%, 75%) in HSL. It is commonly used in modern UI design.

Try:
Color NameViolet
HEX
#D98BF2
RGB
217, 139, 242
HSL
285°, 80%, 75%
CMYK
10%, 43%, 0%, 5%

Shades

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

Generate Gradient

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

Preview in UI

Button

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

Badge

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

Alert / Toast

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

Link / Accent

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

a { color: #D98BF2; }

Related Colors

Complementary

Analogous

Triadic

Split Complementary

Tetradic

Monochromatic

Popular Colors

Common HEX Colors

Color Theory

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

Current Complementary Triadic Analogous

RGB, HSL and CMYK Values

RGB

217, 139, 242

Red: 217 / Green: 139 / Blue: 242

HSL

285°, 80%, 75%

Hue: 285° / Saturation: 80% / Lightness: 75%

CMYK

10%, 43%, 0%, 5%

Cyan: 10% / Magenta: 43% / Yellow: 0% / Key: 5%

What color is #D98BF2?

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

Color Shades

Complementary Colors

Color Palette

HEX to RGB

Convert #D98BF2 to RGB:

rgb(217, 139, 242)HEX to RGB Converter →

HEX to HSL

Convert #D98BF2 to HSL:

hsl(285, 80%, 75%)RGB to HSL Converter →

HEX to CMYK

Convert #D98BF2 to CMYK:

cmyk(10%, 43%, 0%, 5%)Color Converter →

Color Meaning and Usage

#D98BF2 is a vivid magenta color with RGB values of 217, 139, 242 and HSL of 285°, 80%, 75%. This magenta-red hue evokes romance and playfulness, making it suitable for well suited for marketing pages and hero sections. Lighter variations like #FFFFFF create softer gradients.

The complementary color of #D98BF2 is #A6F28C, creating high-contrast pairings. For softer combinations, try analogous colors like #A68CF2.

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

Contrast with #D98BF2

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

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

Need more control? Contrast Checker →

Frequently Asked Questions

What color is #D98BF2?

#D98BF2 is a vivid magenta color - a magenta-red hue that evokes romance and playfulness.

What is the RGB value of #D98BF2?

#D98BF2 in RGB is (217, 139, 242) - 217 red, 139 green, and 242 blue.

How to use #D98BF2 in CSS?

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

What colors go well with #D98BF2?

#A6F28C (complementary), #A68CF2 (analogous), and #C247EB (lighter shade) work well with #D98BF2.