Skip to content

#df98e2

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

RGB
223, 152, 226
HSL
298°, 56%, 74%
CMYK
1, 33, 0, 11
Luminance
0.4364

At a glance

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

Hex
#df98e2
Hue
298°
magenta / pink
Saturation
56%
vivid
Lightness
74%
light
Brightness
89%
HSV value
Perceived
73%
weighted brightness
Luminance
0.4364
WCAG relative
Temperature
Neutral
51/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
9.73:1
Closest name
Plum
ΔE2000 2.8
Where it sits
Hue298° of 360°
Saturation56%
Lightness74%
Temperature
Warm ← → Cool51% 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#df98e2
RGBrgb(223, 152, 226)
HSLhsl(298, 56%, 74%)
CMYKcmyk(1%, 33%, 0%, 11%)
LABlab(72.0 38.4 -26.8)
LCHlch(72.0 46.8 325.0)
OKLCHoklch(0.774 0.128 325.3)
Decimal14653666
Display P3color(display-p3 0.875 0.596 0.886)

Copy-ready code

/* CSS */
color: #df98e2;
background-color: #df98e2;
/* Tailwind (arbitrary) */
class="text-[#df98e2] bg-[#df98e2]"
/* SCSS */
$brand: #df98e2;
/* SwiftUI */
Color(red: 0.875, green: 0.596, blue: 0.886)
/* Android */
Color.parseColor("#df98e2")
/* Flutter */
Color(0xFFDF98E2)
/* Python / OpenCV (BGR) */
(226, 152, 223)

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 #df98e2 · 9.73:1
Use #000000AAA at every size.
Aa
White text · 2.16:1
AA fail · AA large fail · AAA fail
Aa
Black text · 9.73:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #df98e2 as text scores 2.16:1 on white and 9.73:1 on black.

Accessibility — WCAG contrast

Aa
#df98e2 on white: 2.16:1
AA ✗ fail · AA-large · AAA
Aa
#df98e2 on black: 9.73:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #92ABE5
deuteranopia · #A3B4DF
tritanopia · #E39FB3

Color scale — 50 to 950

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

#FAF4FB
#F6E9F6
#EDCDEE
#df98e2
#D67CDA
#C950CE
#BA36BF
#9B2D9F
#7C247F
#5A1E5D
#38133A
Base = 300Lightest = 50 · #FAF4FBDarkest = 950 · #38133A
:root {
  --brand-50: #FAF4FB;
  --brand-100: #F6E9F6;
  --brand-200: #EDCDEE;
  --brand-300: #df98e2;
  --brand-400: #D67CDA;
  --brand-500: #C950CE;
  --brand-600: #BA36BF;
  --brand-700: #9B2D9F;
  --brand-800: #7C247F;
  --brand-900: #5A1E5D;
  --brand-950: #38133A;
  --brand: #df98e2;
  --brand-ink: #000000;
}

Colors that work with #df98e2

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#EBC0ED
Hairlines and dividers
Muted text#984B9B
Captions on the surface
Accent#4CA428
Second voice, not a rival
Dark variant#611C64
Hover, pressed, headers
Light variant#F9EBF9
Selected rows, tints
Dark surface#241424
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 #df98e2

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#9BE298
Analogous left#BA98E2
Analogous right#E298C0
Split-complement 1#C0E298
Split-complement 2#98E2BA
Triadic 1#E2DF98
Triadic 2#98E2DF
Tetradic#E2BA98

RGB percentages

Red87.5%
Green59.6%
Blue88.6%

CMYK percentages

Cyan1.3%
Magenta32.7%
Yellow0.0%
Key (black)11.4%

Color previews

#df98e2 text on a black background

contrast 9.73:1

Card sample

#df98e2 text on a white background

contrast 2.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df98e2

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.

#df98e2 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.

#df98e2, answered

What color is #df98e2?

#df98e2 is a light vivid magenta / pink, closest to Plum (ΔE2000 2.8). It sits at 298° on the hue wheel with 56% saturation and 74% lightness, which reads as neutral.

What is the RGB value of #df98e2?

rgb(223, 152, 226) — 223 red, 152 green and 226 blue out of 255, or 87.5% / 59.6% / 88.6% by channel.

Is #df98e2 a light or a dark color?

It is a mid-tone. Relative luminance is 0.4364 and perceived brightness is 73%, so black text on it reaches 9.73:1.

Should I use black or white text on #df98e2?

Black. It scores 9.73:1 against #df98e2, versus 2.16:1 for white — AAA at any size.

What is the complementary color of #df98e2?

#9BE298 sits directly opposite on the wheel. Softer options are the split-complements #C0E298 and #98E2BA, which give the same contrast with far less vibration.

What colors go well with #df98e2?

For interface work: #FAF4FA as the surface, #EBC0ED for borders, #984B9B for secondary text, #4CA428 as an accent and #611C64 for hover and pressed states. For a palette, the analogous pair #BA98E2 and #E298C0 stays calm, while #9BE298 is the loudest partner.

What is #df98e2 in CMYK for printing?

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

Is #df98e2 warm or cool?

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

Work with #df98e2 in the Color Lab