Skip to content

#d98cdf

a light, vivid magenta / pink · neutral · closest name: Violet

RGB
217, 140, 223
HSL
296°, 57%, 71%
CMYK
3, 37, 0, 13
Luminance
0.3884

At a glance

Every number on this page in one read: what #d98cdf is made of, how bright it looks, and which way it leans.

Hex
#d98cdf
Hue
296°
magenta / pink
Saturation
57%
vivid
Lightness
71%
light
Brightness
87%
HSV value
Perceived
69%
weighted brightness
Luminance
0.3884
WCAG relative
Temperature
Neutral
52/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
8.77:1
Closest name
Violet
ΔE2000 4.4
Where it sits
Hue296° of 360°
Saturation57%
Lightness71%
Temperature
Warm ← → Cool52% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#d98cdf
RGBrgb(217, 140, 223)
HSLhsl(296, 57%, 71%)
CMYKcmyk(3%, 37%, 0%, 13%)
LABlab(68.6 42.3 -30.4)
LCHlch(68.6 52.1 324.3)
OKLCHoklch(0.747 0.142 324.3)
Decimal14257375
Display P3color(display-p3 0.851 0.549 0.875)

Copy-ready code

/* CSS */
color: #d98cdf;
background-color: #d98cdf;
/* Tailwind (arbitrary) */
class="text-[#d98cdf] bg-[#d98cdf]"
/* SCSS */
$brand: #d98cdf;
/* SwiftUI */
Color(red: 0.851, green: 0.549, blue: 0.875)
/* Android */
Color.parseColor("#d98cdf")
/* Flutter */
Color(0xFFD98CDF)
/* Python / OpenCV (BGR) */
(223, 140, 217)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #d98cdf · 8.77:1
Use #000000AAA at every size.
Aa
White text · 2.40:1
AA fail · AA large fail · AAA fail
Aa
Black text · 8.77:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #d98cdf as text scores 2.40:1 on white and 8.77:1 on black.

Accessibility — WCAG contrast

Aa
#d98cdf on white: 2.40:1
AA ✗ fail · AA-large · AAA
Aa
#d98cdf on black: 8.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #84A2E2
deuteranopia · #98ABDC
tritanopia · #DC95AB

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #d98cdf is pinned to step 400; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FAF4FB
#F5E9F6
#ECCDEE
#E2A7E7
#d98cdf
#C54FCE
#B635C0
#972CA0
#792380
#581D5D
#37123A
Base = 400Lightest = 50 · #FAF4FBDarkest = 950 · #37123A
:root {
  --brand-50: #FAF4FB;
  --brand-100: #F5E9F6;
  --brand-200: #ECCDEE;
  --brand-300: #E2A7E7;
  --brand-400: #d98cdf;
  --brand-500: #C54FCE;
  --brand-600: #B635C0;
  --brand-700: #972CA0;
  --brand-800: #792380;
  --brand-900: #581D5D;
  --brand-950: #37123A;
  --brand: #d98cdf;
  --brand-ink: #000000;
}

Colors that work with #d98cdf

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAF4FA
Tinted page background
Border#E9C0ED
Hairlines and dividers
Muted text#954B9B
Captions on the surface
Accent#51A428
Second voice, not a rival
Dark variant#5F1C64
Hover, pressed, headers
Light variant#F8EBF9
Selected rows, tints
Dark surface#231424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #d98cdf

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Card and section backgrounds
  • Brand accents, badges and data highlights
Use with care
  • Text of any size on white — fails WCAG AA
  • Full-page backgrounds — tiring over long sessions
  • White text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#92DF8C
Analogous left#B08CDF
Analogous right#DF8CBC
Split-complement 1#BCDF8C
Split-complement 2#8CDFB0
Triadic 1#DFD98C
Triadic 2#8CDFD9
Tetradic#DFB08C

RGB percentages

Red85.1%
Green54.9%
Blue87.5%

CMYK percentages

Cyan2.7%
Magenta37.2%
Yellow0.0%
Key (black)12.5%

Color previews

#d98cdf text on a black background

contrast 8.77:1

Card sample

#d98cdf text on a white background

contrast 2.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #d98cdf;
Background color
Panel with #d98cdf background
background-color: #d98cdf;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #d98cdf;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(217, 140, 223, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(217, 140, 223, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d98cdf;
background: linear-gradient(135deg, #d98cdf, #DF8CAE);

Monochromatic scale

Palettes built from #d98cdf

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#d98cdf in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Converts to four-color process without much drama. Proof it anyway.

#d98cdf, answered

What color is #d98cdf?

#d98cdf is a light vivid magenta / pink, closest to Violet (ΔE2000 4.4). It sits at 296° on the hue wheel with 57% saturation and 71% lightness, which reads as neutral.

What is the RGB value of #d98cdf?

rgb(217, 140, 223) — 217 red, 140 green and 223 blue out of 255, or 85.1% / 54.9% / 87.5% by channel.

Is #d98cdf a light or a dark color?

It is a mid-tone. Relative luminance is 0.3884 and perceived brightness is 69%, so black text on it reaches 8.77:1.

Should I use black or white text on #d98cdf?

Black. It scores 8.77:1 against #d98cdf, versus 2.40:1 for white — AAA at any size.

What is the complementary color of #d98cdf?

#92DF8C sits directly opposite on the wheel. Softer options are the split-complements #BCDF8C and #8CDFB0, which give the same contrast with far less vibration.

What colors go well with #d98cdf?

For interface work: #FAF4FA as the surface, #E9C0ED for borders, #954B9B for secondary text, #51A428 as an accent and #5F1C64 for hover and pressed states. For a palette, the analogous pair #B08CDF and #DF8CBC stays calm, while #92DF8C is the loudest partner.

What is #d98cdf in CMYK for printing?

cmyk(3%, 37%, 0%, 13%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #d98cdf warm or cool?

Neutral — it scores 52 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DF8CC7; nudged cooler, #BB8BE1.

Work with #d98cdf in the Color Lab