Skip to content

#d91df6

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

RGB
217, 29, 246
HSL
292°, 92%, 54%
CMYK
12, 88, 0, 4
Luminance
0.2228

At a glance

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

Hex
#d91df6
Hue
292°
magenta / pink
Saturation
92%
electric
Lightness
54%
balanced
Brightness
96%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2228
WCAG relative
Temperature
Neutral
54/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
5.46:1
Closest name
Magenta
ΔE2000 6.4
Where it sits
Hue292° of 360°
Saturation92%
Lightness54%
Temperature
Warm ← → Cool54% 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#d91df6
RGBrgb(217, 29, 246)
HSLhsl(292, 92%, 54%)
CMYKcmyk(12%, 88%, 0%, 4%)
LABlab(54.3 88.5 -65.8)
LCHlch(54.3 110.3 323.4)
OKLCHoklch(0.646 0.296 321.4)
Decimal14228982
Display P3color(display-p3 0.851 0.114 0.965)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d91df6 on white: 3.85:1
AA ✗ fail · AA-large · AAA
Aa
#d91df6 on black: 5.46:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0076FB
deuteranopia · #4388F2
tritanopia · #DB5693

Color scale — 50 to 950

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

#FCF2FD
#F8E4FB
#F2C3F9
#ED93FB
#E45DF9
#d91df6
#CD09EB
#AB08C4
#89069D
#630971
#3E0647
Base = 500Lightest = 50 · #FCF2FDDarkest = 950 · #3E0647
:root {
  --brand-50: #FCF2FD;
  --brand-100: #F8E4FB;
  --brand-200: #F2C3F9;
  --brand-300: #ED93FB;
  --brand-400: #E45DF9;
  --brand-500: #d91df6;
  --brand-600: #CD09EB;
  --brand-700: #AB08C4;
  --brand-800: #89069D;
  --brand-900: #630971;
  --brand-950: #3E0647;
  --brand: #d91df6;
  --brand-ink: #000000;
}

Colors that work with #d91df6

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#E7C0ED
Hairlines and dividers
Muted text#904B9B
Captions on the surface
Accent#4FC903
Second voice, not a rival
Dark variant#6B057B
Hover, pressed, headers
Light variant#FBE6FE
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 #d91df6

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#3AF61D
Analogous left#6D1DF6
Analogous right#F61DA6
Split-complement 1#A6F61D
Split-complement 2#1DF66D
Triadic 1#F6D91D
Triadic 2#1DF6D9
Tetradic#F66D1D

RGB percentages

Red85.1%
Green11.4%
Blue96.5%

CMYK percentages

Cyan11.8%
Magenta88.2%
Yellow0.0%
Key (black)3.5%

Color previews

#d91df6 text on a black background

contrast 5.46:1

Card sample

#d91df6 text on a white background

contrast 3.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d91df6

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.

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

#d91df6, answered

What color is #d91df6?

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

What is the RGB value of #d91df6?

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

Is #d91df6 a light or a dark color?

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

Should I use black or white text on #d91df6?

Black. It scores 5.46:1 against #d91df6, versus 3.85:1 for white — AA at any size.

What is the complementary color of #d91df6?

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

What colors go well with #d91df6?

For interface work: #FAF4FA as the surface, #E7C0ED for borders, #904B9B for secondary text, #4FC903 as an accent and #6B057B for hover and pressed states. For a palette, the analogous pair #6D1DF6 and #F61DA6 stays calm, while #3AF61D is the loudest partner.

What is #d91df6 in CMYK for printing?

cmyk(12%, 88%, 0%, 4%). 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 #d91df6 warm or cool?

Neutral — it scores 54 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #F61DC3; nudged cooler, #891BF8.

Work with #d91df6 in the Color Lab