Skip to content

#df016b

a dark, electric magenta / pink · warm · closest name: Medium Violet Red

RGB
223, 1, 107
HSL
331°, 99%, 44%
CMYK
0, 100, 52, 13
Luminance
0.1677

At a glance

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

Hex
#df016b
Hue
331°
magenta / pink
Saturation
99%
electric
Lightness
44%
dark
Brightness
87%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1677
WCAG relative
Temperature
Warm
33/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
4.82:1
Closest name
Medium Violet Red
ΔE2000 9.1
Where it sits
Hue331° of 360°
Saturation99%
Lightness44%
Temperature
Warm ← → Cool33% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#df016b
RGBrgb(223, 1, 107)
HSLhsl(331, 99%, 44%)
CMYKcmyk(0%, 100%, 52%, 13%)
LABlab(48.0 76.0 6.1)
LCHlch(48.0 76.3 4.6)
OKLCHoklch(0.582 0.234 4.0)
Decimal14614891
Display P3color(display-p3 0.875 0.004 0.420)

Copy-ready code

/* CSS */
color: #df016b;
background-color: #df016b;
/* Tailwind (arbitrary) */
class="text-[#df016b] bg-[#df016b]"
/* SCSS */
$brand: #df016b;
/* SwiftUI */
Color(red: 0.875, green: 0.004, blue: 0.420)
/* Android */
Color.parseColor("#df016b")
/* Flutter */
Color(0xFFDF016B)
/* Python / OpenCV (BGR) */
(107, 1, 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#ffffff on #df016b · 4.82:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.82:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.35:1
AA fail · AA large pass · AAA fail
Reading the other direction: #df016b as text scores 4.82:1 on white and 4.35:1 on black.

Accessibility — WCAG contrast

Aa
#df016b on white: 4.82:1
AA ✓ pass · AA-large · AAA
Aa
#df016b on black: 4.35:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #51596D
deuteranopia · #867F66
tritanopia · #F3003E

Color scale — 50 to 950

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

#FEF1F7
#FCE3EF
#FBC0DC
#FE8FC4
#FE57A7
#FE208A
#F40175
#df016b
#A2014E
#75053B
#490325
Base = 700Lightest = 50 · #FEF1F7Darkest = 950 · #490325
:root {
  --brand-50: #FEF1F7;
  --brand-100: #FCE3EF;
  --brand-200: #FBC0DC;
  --brand-300: #FE8FC4;
  --brand-400: #FE57A7;
  --brand-500: #FE208A;
  --brand-600: #F40175;
  --brand-700: #df016b;
  --brand-800: #A2014E;
  --brand-900: #75053B;
  --brand-950: #490325;
  --brand: #df016b;
  --brand-ink: #ffffff;
}

Colors that work with #df016b

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#FAF4F7
Tinted page background
Border#EDC0D5
Hairlines and dividers
Muted text#9B4B71
Captions on the surface
Accent#00CC37
Second voice, not a rival
Dark variant#7F013D
Hover, pressed, headers
Light variant#FFE6F2
Selected rows, tints
Dark surface#24141C
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 #df016b

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

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#01DF75
Analogous left#DF01DA
Analogous right#DF0601
Split-complement 1#01DF06
Split-complement 2#01DADF
Triadic 1#6BDF01
Triadic 2#016BDF
Tetradic#DADF01

RGB percentages

Red87.5%
Green0.4%
Blue42.0%

CMYK percentages

Cyan0.0%
Magenta99.6%
Yellow52.0%
Key (black)12.5%

Color previews

#df016b text on a black background

contrast 4.35:1

Card sample

#df016b text on a white background

contrast 4.82:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df016b

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.

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

#df016b, answered

What color is #df016b?

#df016b is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 9.1). It sits at 331° on the hue wheel with 99% saturation and 44% lightness, which reads as warm.

What is the RGB value of #df016b?

rgb(223, 1, 107) — 223 red, 1 green and 107 blue out of 255, or 87.5% / 0.4% / 42% by channel.

Is #df016b a light or a dark color?

It is a dark color. Relative luminance is 0.1677 and perceived brightness is 50%, so white text on it reaches 4.82:1.

Should I use black or white text on #df016b?

White. It scores 4.82:1 against #df016b, versus 4.35:1 for black — AA at any size.

What is the complementary color of #df016b?

#01DF75 sits directly opposite on the wheel. Softer options are the split-complements #01DF06 and #01DADF, which give the same contrast with far less vibration.

What colors go well with #df016b?

For interface work: #FAF4F7 as the surface, #EDC0D5 for borders, #9B4B71 for secondary text, #00CC37 as an accent and #7F013D for hover and pressed states. For a palette, the analogous pair #DF01DA and #DF0601 stays calm, while #01DF75 is the loudest partner.

What is #df016b in CMYK for printing?

cmyk(0%, 100%, 52%, 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 #df016b warm or cool?

Warm — it scores 33 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DF0119; nudged cooler, #E000BD.

Work with #df016b in the Color Lab