Skip to content

#d871df

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

RGB
216, 113, 223
HSL
296°, 63%, 66%
CMYK
3, 49, 0, 13
Luminance
0.3174

At a glance

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

Hex
#d871df
Hue
296°
magenta / pink
Saturation
63%
vivid
Lightness
66%
light
Brightness
87%
HSV value
Perceived
65%
weighted brightness
Luminance
0.3174
WCAG relative
Temperature
Neutral
52/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
7.35:1
Closest name
Orchid
ΔE2000 1.8
Where it sits
Hue296° of 360°
Saturation63%
Lightness66%
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#d871df
RGBrgb(216, 113, 223)
HSLhsl(296, 63%, 66%)
CMYKcmyk(3%, 49%, 0%, 13%)
LABlab(63.1 55.8 -39.0)
LCHlch(63.1 68.1 325.1)
OKLCHoklch(0.705 0.187 324.9)
Decimal14184927
Display P3color(display-p3 0.847 0.443 0.875)

Copy-ready code

/* CSS */
color: #d871df;
background-color: #d871df;
/* Tailwind (arbitrary) */
class="text-[#d871df] bg-[#d871df]"
/* SCSS */
$brand: #d871df;
/* SwiftUI */
Color(red: 0.847, green: 0.443, blue: 0.875)
/* Android */
Color.parseColor("#d871df")
/* Flutter */
Color(0xFFD871DF)
/* Python / OpenCV (BGR) */
(223, 113, 216)

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

Accessibility — WCAG contrast

Aa
#d871df on white: 2.86:1
AA ✗ fail · AA-large · AAA
Aa
#d871df on black: 7.35:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #6491E3
deuteranopia · #839DDC
tritanopia · #DC7E9E

Color scale — 50 to 950

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

#FBF4FB
#F6E8F7
#EECBF0
#E6A3EA
#d871df
#CD48D6
#BE2DC8
#9E26A6
#7F1E85
#5C1A61
#3A103C
Base = 400Lightest = 50 · #FBF4FBDarkest = 950 · #3A103C
:root {
  --brand-50: #FBF4FB;
  --brand-100: #F6E8F7;
  --brand-200: #EECBF0;
  --brand-300: #E6A3EA;
  --brand-400: #d871df;
  --brand-500: #CD48D6;
  --brand-600: #BE2DC8;
  --brand-700: #9E26A6;
  --brand-800: #7F1E85;
  --brand-900: #5C1A61;
  --brand-950: #3A103C;
  --brand: #d871df;
  --brand-ink: #000000;
}

Colors that work with #d871df

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#EAC0ED
Hairlines and dividers
Muted text#964B9B
Captions on the surface
Accent#4CAA22
Second voice, not a rival
Dark variant#631768
Hover, pressed, headers
Light variant#F9EAFA
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 #d871df

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#78DF71
Analogous left#A171DF
Analogous right#DF71AF
Split-complement 1#AFDF71
Split-complement 2#71DFA1
Triadic 1#DFD871
Triadic 2#71DFD8
Tetradic#DFA171

RGB percentages

Red84.7%
Green44.3%
Blue87.5%

CMYK percentages

Cyan3.1%
Magenta49.3%
Yellow0.0%
Key (black)12.5%

Color previews

#d871df text on a black background

contrast 7.35:1

Card sample

#d871df text on a white background

contrast 2.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d871df

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.

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

#d871df, answered

What color is #d871df?

#d871df is a light vivid magenta / pink, closest to Orchid (ΔE2000 1.8). It sits at 296° on the hue wheel with 63% saturation and 66% lightness, which reads as neutral.

What is the RGB value of #d871df?

rgb(216, 113, 223) — 216 red, 113 green and 223 blue out of 255, or 84.7% / 44.3% / 87.5% by channel.

Is #d871df a light or a dark color?

It is a mid-tone. Relative luminance is 0.3174 and perceived brightness is 65%, so black text on it reaches 7.35:1.

Should I use black or white text on #d871df?

Black. It scores 7.35:1 against #d871df, versus 2.86:1 for white — AAA at any size.

What is the complementary color of #d871df?

#78DF71 sits directly opposite on the wheel. Softer options are the split-complements #AFDF71 and #71DFA1, which give the same contrast with far less vibration.

What colors go well with #d871df?

For interface work: #FAF4FA as the surface, #EAC0ED for borders, #964B9B for secondary text, #4CAA22 as an accent and #631768 for hover and pressed states. For a palette, the analogous pair #A171DF and #DF71AF stays calm, while #78DF71 is the loudest partner.

What is #d871df in CMYK for printing?

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

Is #d871df 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 #DF71BE; nudged cooler, #B06FE1.

Work with #d871df in the Color Lab