Skip to content

#d91dec

a balanced, electric magenta / pink · neutral · closest name: Medium Orchid

RGB
217, 29, 236
HSL
295°, 85%, 52%
CMYK
8, 88, 0, 8
Luminance
0.2169

At a glance

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

Hex
#d91dec
Hue
295°
magenta / pink
Saturation
85%
electric
Lightness
52%
balanced
Brightness
93%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2169
WCAG relative
Temperature
Neutral
53/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
5.34:1
Closest name
Medium Orchid
ΔE2000 6.4
Where it sits
Hue295° of 360°
Saturation85%
Lightness52%
Temperature
Warm ← → Cool53% 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#d91dec
RGBrgb(217, 29, 236)
HSLhsl(295, 85%, 52%)
CMYKcmyk(8%, 88%, 0%, 8%)
LABlab(53.7 86.9 -61.2)
LCHlch(53.7 106.3 324.9)
OKLCHoklch(0.640 0.289 323.6)
Decimal14228972
Display P3color(display-p3 0.851 0.114 0.925)

Copy-ready code

/* CSS */
color: #d91dec;
background-color: #d91dec;
/* Tailwind (arbitrary) */
class="text-[#d91dec] bg-[#d91dec]"
/* SCSS */
$brand: #d91dec;
/* SwiftUI */
Color(red: 0.851, green: 0.114, blue: 0.925)
/* Android */
Color.parseColor("#d91dec")
/* Flutter */
Color(0xFFD91DEC)
/* Python / OpenCV (BGR) */
(236, 29, 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 #d91dec · 5.34:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.93:1
AA fail · AA large pass · AAA fail
Aa
Black text · 5.34:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #d91dec as text scores 3.93:1 on white and 5.34:1 on black.

Accessibility — WCAG contrast

Aa
#d91dec on white: 3.93:1
AA ✗ fail · AA-large · AAA
Aa
#d91dec on black: 5.34:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0073F1
deuteranopia · #4D87E8
tritanopia · #DD508D

Color scale — 50 to 950

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

#FCF2FC
#F8E6FA
#F2C5F7
#EE97F6
#E564F2
#d91dec
#CF13E2
#AC10BC
#8A0D97
#640E6D
#3F0944
Base = 500Lightest = 50 · #FCF2FCDarkest = 950 · #3F0944
:root {
  --brand-50: #FCF2FC;
  --brand-100: #F8E6FA;
  --brand-200: #F2C5F7;
  --brand-300: #EE97F6;
  --brand-400: #E564F2;
  --brand-500: #d91dec;
  --brand-600: #CF13E2;
  --brand-700: #AC10BC;
  --brand-800: #8A0D97;
  --brand-900: #640E6D;
  --brand-950: #3F0944;
  --brand: #d91dec;
  --brand-ink: #000000;
}

Colors that work with #d91dec

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#944B9B
Captions on the surface
Accent#49C00C
Second voice, not a rival
Dark variant#6C0A76
Hover, pressed, headers
Light variant#FBE7FD
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 #d91dec

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

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • Full-page backgrounds — tiring over long sessions
  • 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#30EC1D
Analogous left#721DEC
Analogous right#EC1D98
Split-complement 1#98EC1D
Split-complement 2#1DEC72
Triadic 1#ECD91D
Triadic 2#1DECD9
Tetradic#EC721D

RGB percentages

Red85.1%
Green11.4%
Blue92.5%

CMYK percentages

Cyan8.1%
Magenta87.7%
Yellow0.0%
Key (black)7.5%

Color previews

#d91dec text on a black background

contrast 5.34:1

Card sample

#d91dec text on a white background

contrast 3.93:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d91dec

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.

#d91dec 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
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#d91dec, answered

What color is #d91dec?

#d91dec is a balanced electric magenta / pink, closest to Medium Orchid (ΔE2000 6.4). It sits at 295° on the hue wheel with 85% saturation and 52% lightness, which reads as neutral.

What is the RGB value of #d91dec?

rgb(217, 29, 236) — 217 red, 29 green and 236 blue out of 255, or 85.1% / 11.4% / 92.5% by channel.

Is #d91dec a light or a dark color?

It is a mid-tone. Relative luminance is 0.2169 and perceived brightness is 57%, so black text on it reaches 5.34:1.

Should I use black or white text on #d91dec?

Black. It scores 5.34:1 against #d91dec, versus 3.93:1 for white — AA at any size.

What is the complementary color of #d91dec?

#30EC1D sits directly opposite on the wheel. Softer options are the split-complements #98EC1D and #1DEC72, which give the same contrast with far less vibration.

What colors go well with #d91dec?

For interface work: #FAF4FA as the surface, #E9C0ED for borders, #944B9B for secondary text, #49C00C as an accent and #6C0A76 for hover and pressed states. For a palette, the analogous pair #721DEC and #EC1D98 stays calm, while #30EC1D is the loudest partner.

What is #d91dec in CMYK for printing?

cmyk(8%, 88%, 0%, 8%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #d91dec warm or cool?

Neutral — it scores 53 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EC1DB3; nudged cooler, #8D1BEE.

Work with #d91dec in the Color Lab