Skip to content

#d31bdf

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

RGB
211, 27, 223
HSL
296°, 78%, 49%
CMYK
5, 88, 0, 13
Luminance
0.1996

At a glance

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

Hex
#d31bdf
Hue
296°
magenta / pink
Saturation
78%
electric
Lightness
49%
balanced
Brightness
87%
HSV value
Perceived
55%
weighted brightness
Luminance
0.1996
WCAG relative
Temperature
Neutral
52/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
4.99:1
Closest name
Medium Orchid
ΔE2000 6.2
Where it sits
Hue296° of 360°
Saturation78%
Lightness49%
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#d31bdf
RGBrgb(211, 27, 223)
HSLhsl(296, 78%, 49%)
CMYKcmyk(5%, 88%, 0%, 13%)
LABlab(51.8 84.3 -57.0)
LCHlch(51.8 101.7 325.9)
OKLCHoklch(0.622 0.279 325.2)
Decimal13835231
Display P3color(display-p3 0.827 0.106 0.875)

Copy-ready code

/* CSS */
color: #d31bdf;
background-color: #d31bdf;
/* Tailwind (arbitrary) */
class="text-[#d31bdf] bg-[#d31bdf]"
/* SCSS */
$brand: #d31bdf;
/* SwiftUI */
Color(red: 0.827, green: 0.106, blue: 0.875)
/* Android */
Color.parseColor("#d31bdf")
/* Flutter */
Color(0xFFD31BDF)
/* Python / OpenCV (BGR) */
(223, 27, 211)

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

Accessibility — WCAG contrast

Aa
#d31bdf on white: 4.21:1
AA ✗ fail · AA-large · AAA
Aa
#d31bdf on black: 4.99:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #006EE4
deuteranopia · #5082DB
tritanopia · #D84A85

Color scale — 50 to 950

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

#FBF3FC
#F8E6F9
#F2C7F5
#ED9BF3
#E569ED
#DC37E7
#d31bdf
#AC16B6
#8A1292
#641169
#3E0B42
Base = 600Lightest = 50 · #FBF3FCDarkest = 950 · #3E0B42
:root {
  --brand-50: #FBF3FC;
  --brand-100: #F8E6F9;
  --brand-200: #F2C7F5;
  --brand-300: #ED9BF3;
  --brand-400: #E569ED;
  --brand-500: #DC37E7;
  --brand-600: #d31bdf;
  --brand-700: #AC16B6;
  --brand-800: #8A1292;
  --brand-900: #641169;
  --brand-950: #3E0B42;
  --brand: #d31bdf;
  --brand-ink: #000000;
}

Colors that work with #d31bdf

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#46BA12
Second voice, not a rival
Dark variant#6C0E72
Hover, pressed, headers
Light variant#FBE8FC
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 #d31bdf

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#27DF1B
Analogous left#711BDF
Analogous right#DF1B89
Split-complement 1#89DF1B
Split-complement 2#1BDF71
Triadic 1#DFD31B
Triadic 2#1BDFD3
Tetradic#DF711B

RGB percentages

Red82.7%
Green10.6%
Blue87.5%

CMYK percentages

Cyan5.4%
Magenta87.9%
Yellow0.0%
Key (black)12.5%

Color previews

#d31bdf text on a black background

contrast 4.99:1

Card sample

#d31bdf text on a white background

contrast 4.21:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d31bdf

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.

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

#d31bdf, answered

What color is #d31bdf?

#d31bdf is a balanced electric magenta / pink, closest to Medium Orchid (ΔE2000 6.2). It sits at 296° on the hue wheel with 78% saturation and 49% lightness, which reads as neutral.

What is the RGB value of #d31bdf?

rgb(211, 27, 223) — 211 red, 27 green and 223 blue out of 255, or 82.7% / 10.6% / 87.5% by channel.

Is #d31bdf a light or a dark color?

It is a mid-tone. Relative luminance is 0.1996 and perceived brightness is 55%, so black text on it reaches 4.99:1.

Should I use black or white text on #d31bdf?

Black. It scores 4.99:1 against #d31bdf, versus 4.21:1 for white — AA at any size.

What is the complementary color of #d31bdf?

#27DF1B sits directly opposite on the wheel. Softer options are the split-complements #89DF1B and #1BDF71, which give the same contrast with far less vibration.

What colors go well with #d31bdf?

For interface work: #FAF4FA as the surface, #EAC0ED for borders, #964B9B for secondary text, #46BA12 as an accent and #6C0E72 for hover and pressed states. For a palette, the analogous pair #711BDF and #DF1B89 stays calm, while #27DF1B is the loudest partner.

What is #d31bdf in CMYK for printing?

cmyk(5%, 88%, 0%, 13%). 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 #d31bdf 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 #DF1BA3; nudged cooler, #8B18E1.

Work with #d31bdf in the Color Lab