Skip to content

#d91cfb

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

RGB
217, 28, 251
HSL
291°, 97%, 55%
CMYK
14, 89, 0, 2
Luminance
0.2255

At a glance

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

Hex
#d91cfb
Hue
291°
magenta / pink
Saturation
97%
electric
Lightness
55%
balanced
Brightness
98%
HSV value
Perceived
58%
weighted brightness
Luminance
0.2255
WCAG relative
Temperature
Neutral
55/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
5.51:1
Closest name
Magenta
ΔE2000 6.4
Where it sits
Hue291° of 360°
Saturation97%
Lightness55%
Temperature
Warm ← → Cool55% 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#d91cfb
RGBrgb(217, 28, 251)
HSLhsl(291, 97%, 55%)
CMYKcmyk(14%, 89%, 0%, 2%)
LABlab(54.6 89.5 -68.1)
LCHlch(54.6 112.5 322.7)
OKLCHoklch(0.649 0.300 320.3)
Decimal14228731
Display P3color(display-p3 0.851 0.110 0.984)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d91cfb on white: 3.81:1
AA ✗ fail · AA-large · AAA
Aa
#d91cfb on black: 5.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0077FF
deuteranopia · #3C88F7
tritanopia · #DA5996

Color scale — 50 to 950

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

#FCF1FD
#F8E4FC
#F2C1FB
#ED91FD
#E35AFC
#d91cfb
#CD04F1
#AB04C8
#8803A0
#630774
#3E0448
Base = 500Lightest = 50 · #FCF1FDDarkest = 950 · #3E0448
:root {
  --brand-50: #FCF1FD;
  --brand-100: #F8E4FC;
  --brand-200: #F2C1FB;
  --brand-300: #ED91FD;
  --brand-400: #E35AFC;
  --brand-500: #d91cfb;
  --brand-600: #CD04F1;
  --brand-700: #AB04C8;
  --brand-800: #8803A0;
  --brand-900: #630774;
  --brand-950: #3E0448;
  --brand: #d91cfb;
  --brand-ink: #000000;
}

Colors that work with #d91cfb

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#F9F4FA
Tinted page background
Border#E6C0ED
Hairlines and dividers
Muted text#8F4B9B
Captions on the surface
Accent#52CC00
Second voice, not a rival
Dark variant#6B027D
Hover, pressed, headers
Light variant#FBE6FF
Selected rows, tints
Dark surface#221424
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 #d91cfb

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#3EFB1C
Analogous left#6A1CFB
Analogous right#FB1CAD
Split-complement 1#ADFB1C
Split-complement 2#1CFB6A
Triadic 1#FBD91C
Triadic 2#1CFBD9
Tetradic#FB6A1C

RGB percentages

Red85.1%
Green11.0%
Blue98.4%

CMYK percentages

Cyan13.5%
Magenta88.8%
Yellow0.0%
Key (black)1.6%

Color previews

#d91cfb text on a black background

contrast 5.51:1

Card sample

#d91cfb text on a white background

contrast 3.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d91cfb

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.

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

#d91cfb, answered

What color is #d91cfb?

#d91cfb is a balanced electric magenta / pink, closest to Magenta (ΔE2000 6.4). It sits at 291° on the hue wheel with 97% saturation and 55% lightness, which reads as neutral.

What is the RGB value of #d91cfb?

rgb(217, 28, 251) — 217 red, 28 green and 251 blue out of 255, or 85.1% / 11% / 98.4% by channel.

Is #d91cfb a light or a dark color?

It is a mid-tone. Relative luminance is 0.2255 and perceived brightness is 58%, so black text on it reaches 5.51:1.

Should I use black or white text on #d91cfb?

Black. It scores 5.51:1 against #d91cfb, versus 3.81:1 for white — AA at any size.

What is the complementary color of #d91cfb?

#3EFB1C sits directly opposite on the wheel. Softer options are the split-complements #ADFB1C and #1CFB6A, which give the same contrast with far less vibration.

What colors go well with #d91cfb?

For interface work: #F9F4FA as the surface, #E6C0ED for borders, #8F4B9B for secondary text, #52CC00 as an accent and #6B027D for hover and pressed states. For a palette, the analogous pair #6A1CFB and #FB1CAD stays calm, while #3EFB1C is the loudest partner.

What is #d91cfb in CMYK for printing?

cmyk(14%, 89%, 0%, 2%). 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 #d91cfb warm or cool?

Neutral — it scores 55 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #FB1CCB; nudged cooler, #871AFD.

Work with #d91cfb in the Color Lab