Skip to content

#d97fd7

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

RGB
217, 127, 215
HSL
301°, 54%, 68%
CMYK
0, 42, 1, 15
Luminance
0.3484

At a glance

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

Hex
#d97fd7
Hue
301°
magenta / pink
Saturation
54%
vivid
Lightness
68%
light
Brightness
85%
HSV value
Perceived
67%
weighted brightness
Luminance
0.3484
WCAG relative
Temperature
Neutral
49/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
7.97:1
Closest name
Orchid
ΔE2000 3.3
Where it sits
Hue301° of 360°
Saturation54%
Lightness68%
Temperature
Warm ← → Cool49% 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#d97fd7
RGBrgb(217, 127, 215)
HSLhsl(301, 54%, 68%)
CMYKcmyk(0%, 42%, 1%, 15%)
LABlab(65.6 47.6 -30.6)
LCHlch(65.6 56.6 327.3)
OKLCHoklch(0.723 0.157 327.8)
Decimal14254039
Display P3color(display-p3 0.851 0.498 0.843)

Copy-ready code

/* CSS */
color: #d97fd7;
background-color: #d97fd7;
/* Tailwind (arbitrary) */
class="text-[#d97fd7] bg-[#d97fd7]"
/* SCSS */
$brand: #d97fd7;
/* SwiftUI */
Color(red: 0.851, green: 0.498, blue: 0.843)
/* Android */
Color.parseColor("#d97fd7")
/* Flutter */
Color(0xFFD97FD7)
/* Python / OpenCV (BGR) */
(215, 127, 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 #d97fd7 · 7.97:1
Use #000000AAA at every size.
Aa
White text · 2.64:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.97:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #d97fd7 as text scores 2.64:1 on white and 7.97:1 on black.

Accessibility — WCAG contrast

Aa
#d97fd7 on white: 2.64:1
AA ✗ fail · AA-large · AAA
Aa
#d97fd7 on black: 7.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #7998DA
deuteranopia · #91A4D4
tritanopia · #DE87A1

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #d97fd7 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.

#FBF4FA
#F6E9F6
#EECEED
#E5A8E4
#d97fd7
#CC52C9
#BD38BA
#9D2F9B
#7E257C
#5C1F5A
#391338
Base = 400Lightest = 50 · #FBF4FADarkest = 950 · #391338
:root {
  --brand-50: #FBF4FA;
  --brand-100: #F6E9F6;
  --brand-200: #EECEED;
  --brand-300: #E5A8E4;
  --brand-400: #d97fd7;
  --brand-500: #CC52C9;
  --brand-600: #BD38BA;
  --brand-700: #9D2F9B;
  --brand-800: #7E257C;
  --brand-900: #5C1F5A;
  --brand-950: #391338;
  --brand: #d97fd7;
  --brand-ink: #000000;
}

Colors that work with #d97fd7

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#ECC0EB
Hairlines and dividers
Muted text#9B4B99
Captions on the surface
Accent#46A12B
Second voice, not a rival
Dark variant#621D61
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 #d97fd7

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#7FD981
Analogous left#AE7FD9
Analogous right#D97FAA
Split-complement 1#AAD97F
Split-complement 2#7FD9AE
Triadic 1#D7D97F
Triadic 2#7FD7D9
Tetradic#D9AE7F

RGB percentages

Red85.1%
Green49.8%
Blue84.3%

CMYK percentages

Cyan0.0%
Magenta41.5%
Yellow0.9%
Key (black)14.9%

Color previews

#d97fd7 text on a black background

contrast 7.97:1

Card sample

#d97fd7 text on a white background

contrast 2.64:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d97fd7

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.

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

#d97fd7, answered

What color is #d97fd7?

#d97fd7 is a light vivid magenta / pink, closest to Orchid (ΔE2000 3.3). It sits at 301° on the hue wheel with 54% saturation and 68% lightness, which reads as neutral.

What is the RGB value of #d97fd7?

rgb(217, 127, 215) — 217 red, 127 green and 215 blue out of 255, or 85.1% / 49.8% / 84.3% by channel.

Is #d97fd7 a light or a dark color?

It is a mid-tone. Relative luminance is 0.3484 and perceived brightness is 67%, so black text on it reaches 7.97:1.

Should I use black or white text on #d97fd7?

Black. It scores 7.97:1 against #d97fd7, versus 2.64:1 for white — AAA at any size.

What is the complementary color of #d97fd7?

#7FD981 sits directly opposite on the wheel. Softer options are the split-complements #AAD97F and #7FD9AE, which give the same contrast with far less vibration.

What colors go well with #d97fd7?

For interface work: #FAF4FA as the surface, #ECC0EB for borders, #9B4B99 for secondary text, #46A12B as an accent and #621D61 for hover and pressed states. For a palette, the analogous pair #AE7FD9 and #D97FAA stays calm, while #7FD981 is the loudest partner.

What is #d97fd7 in CMYK for printing?

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

Is #d97fd7 warm or cool?

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

Work with #d97fd7 in the Color Lab