Skip to content

#df1fdb

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

RGB
223, 31, 219
HSL
301°, 76%, 50%
CMYK
0, 86, 2, 13
Luminance
0.2178

At a glance

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

Hex
#df1fdb
Hue
301°
magenta / pink
Saturation
76%
electric
Lightness
50%
balanced
Brightness
87%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2178
WCAG relative
Temperature
Neutral
49/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
5.36:1
Closest name
Medium Orchid
ΔE2000 6.6
Where it sits
Hue301° of 360°
Saturation76%
Lightness50%
Temperature
Warm ← → Cool49% 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#df1fdb
RGBrgb(223, 31, 219)
HSLhsl(301, 76%, 50%)
CMYKcmyk(0%, 86%, 2%, 13%)
LABlab(53.8 85.1 -51.4)
LCHlch(53.8 99.4 328.9)
OKLCHoklch(0.639 0.279 329.3)
Decimal14622683
Display P3color(display-p3 0.875 0.122 0.859)

Copy-ready code

/* CSS */
color: #df1fdb;
background-color: #df1fdb;
/* Tailwind (arbitrary) */
class="text-[#df1fdb] bg-[#df1fdb]"
/* SCSS */
$brand: #df1fdb;
/* SwiftUI */
Color(red: 0.875, green: 0.122, blue: 0.859)
/* Android */
Color.parseColor("#df1fdb")
/* Flutter */
Color(0xFFDF1FDB)
/* Python / OpenCV (BGR) */
(219, 31, 223)

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

Accessibility — WCAG contrast

Aa
#df1fdb on white: 3.92:1
AA ✗ fail · AA-large · AAA
Aa
#df1fdb on black: 5.36:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0071E0
deuteranopia · #6289D7
tritanopia · #E74583

Color scale — 50 to 950

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

#FCF3FC
#F9E7F8
#F4C8F3
#F19CEF
#EA6BE8
#E43AE0
#df1fdb
#B319B0
#8F148D
#681366
#410C40
Base = 600Lightest = 50 · #FCF3FCDarkest = 950 · #410C40
:root {
  --brand-50: #FCF3FC;
  --brand-100: #F9E7F8;
  --brand-200: #F4C8F3;
  --brand-300: #F19CEF;
  --brand-400: #EA6BE8;
  --brand-500: #E43AE0;
  --brand-600: #df1fdb;
  --brand-700: #B319B0;
  --brand-800: #8F148D;
  --brand-900: #681366;
  --brand-950: #410C40;
  --brand: #df1fdb;
  --brand-ink: #000000;
}

Colors that work with #df1fdb

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#EDC0EC
Hairlines and dividers
Muted text#9B4B99
Captions on the surface
Accent#3AB715
Second voice, not a rival
Dark variant#70106E
Hover, pressed, headers
Light variant#FCE9FB
Selected rows, tints
Dark surface#241424
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 #df1fdb

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#1FDF23
Analogous left#831FDF
Analogous right#DF1F7B
Split-complement 1#7BDF1F
Split-complement 2#1FDF83
Triadic 1#DBDF1F
Triadic 2#1FDBDF
Tetradic#DF831F

RGB percentages

Red87.5%
Green12.2%
Blue85.9%

CMYK percentages

Cyan0.0%
Magenta86.1%
Yellow1.8%
Key (black)12.5%

Color previews

#df1fdb text on a black background

contrast 5.36:1

Card sample

#df1fdb text on a white background

contrast 3.92:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df1fdb

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.

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

#df1fdb, answered

What color is #df1fdb?

#df1fdb is a balanced electric magenta / pink, closest to Medium Orchid (ΔE2000 6.6). It sits at 301° on the hue wheel with 76% saturation and 50% lightness, which reads as neutral.

What is the RGB value of #df1fdb?

rgb(223, 31, 219) — 223 red, 31 green and 219 blue out of 255, or 87.5% / 12.2% / 85.9% by channel.

Is #df1fdb a light or a dark color?

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

Should I use black or white text on #df1fdb?

Black. It scores 5.36:1 against #df1fdb, versus 3.92:1 for white — AA at any size.

What is the complementary color of #df1fdb?

#1FDF23 sits directly opposite on the wheel. Softer options are the split-complements #7BDF1F and #1FDF83, which give the same contrast with far less vibration.

What colors go well with #df1fdb?

For interface work: #FAF4FA as the surface, #EDC0EC for borders, #9B4B99 for secondary text, #3AB715 as an accent and #70106E for hover and pressed states. For a palette, the analogous pair #831FDF and #DF1F7B stays calm, while #1FDF23 is the loudest partner.

What is #df1fdb in CMYK for printing?

cmyk(0%, 86%, 2%, 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 #df1fdb warm or cool?

Neutral — it scores 49 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DF1F94; nudged cooler, #9E1CE2.

Work with #df1fdb in the Color Lab