Skip to content

#df037f

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

RGB
223, 3, 127
HSL
326°, 97%, 44%
CMYK
0, 99, 43, 13
Luminance
0.1729

At a glance

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

Hex
#df037f
Hue
326°
magenta / pink
Saturation
97%
electric
Lightness
44%
dark
Brightness
87%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1729
WCAG relative
Temperature
Warm
35/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
4.71:1
Closest name
Medium Violet Red
ΔE2000 5.7
Where it sits
Hue326° of 360°
Saturation97%
Lightness44%
Temperature
Warm ← → Cool35% 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#df037f
RGBrgb(223, 3, 127)
HSLhsl(326, 97%, 44%)
CMYKcmyk(0%, 99%, 43%, 13%)
LABlab(48.6 77.4 -5.2)
LCHlch(48.6 77.6 356.1)
OKLCHoklch(0.589 0.239 356.9)
Decimal14615423
Display P3color(display-p3 0.875 0.012 0.498)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df037f on white: 4.71:1
AA ✓ pass · AA-large · AAA
Aa
#df037f on black: 4.46:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4B5C81
deuteranopia · #82807B
tritanopia · #F2004A

Color scale — 50 to 950

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

#FDF1F8
#FCE4F1
#FBC1E2
#FD90CE
#FD59B5
#FC229D
#df037f
#C90373
#A1025C
#740644
#48042B
Base = 600Lightest = 50 · #FDF1F8Darkest = 950 · #48042B
:root {
  --brand-50: #FDF1F8;
  --brand-100: #FCE4F1;
  --brand-200: #FBC1E2;
  --brand-300: #FD90CE;
  --brand-400: #FD59B5;
  --brand-500: #FC229D;
  --brand-600: #df037f;
  --brand-700: #C90373;
  --brand-800: #A1025C;
  --brand-900: #740644;
  --brand-950: #48042B;
  --brand: #df037f;
  --brand-ink: #ffffff;
}

Colors that work with #df037f

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#FAF4F8
Tinted page background
Border#EDC0D9
Hairlines and dividers
Muted text#9B4B78
Captions on the surface
Accent#00CC26
Second voice, not a rival
Dark variant#7E0248
Hover, pressed, headers
Light variant#FFE6F4
Selected rows, tints
Dark surface#24141D
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 #df037f

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#03DF63
Analogous left#D103DF
Analogous right#DF0311
Split-complement 1#11DF03
Split-complement 2#03DFD1
Triadic 1#7FDF03
Triadic 2#037FDF
Tetradic#DFD103

RGB percentages

Red87.5%
Green1.2%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta98.7%
Yellow43.0%
Key (black)12.5%

Color previews

#df037f text on a black background

contrast 4.46:1

Card sample

#df037f text on a white background

contrast 4.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df037f

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.

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

#df037f, answered

What color is #df037f?

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

What is the RGB value of #df037f?

rgb(223, 3, 127) — 223 red, 3 green and 127 blue out of 255, or 87.5% / 1.2% / 49.8% by channel.

Is #df037f a light or a dark color?

It is a dark color. Relative luminance is 0.1729 and perceived brightness is 51%, so white text on it reaches 4.71:1.

Should I use black or white text on #df037f?

White. It scores 4.71:1 against #df037f, versus 4.46:1 for black — AA at any size.

What is the complementary color of #df037f?

#03DF63 sits directly opposite on the wheel. Softer options are the split-complements #11DF03 and #03DFD1, which give the same contrast with far less vibration.

What colors go well with #df037f?

For interface work: #FAF4F8 as the surface, #EDC0D9 for borders, #9B4B78 for secondary text, #00CC26 as an accent and #7E0248 for hover and pressed states. For a palette, the analogous pair #D103DF and #DF0311 stays calm, while #03DF63 is the loudest partner.

What is #df037f in CMYK for printing?

cmyk(0%, 99%, 43%, 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 #df037f warm or cool?

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

Work with #df037f in the Color Lab