Skip to content

#df037d

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

RGB
223, 3, 125
HSL
327°, 97%, 44%
CMYK
0, 99, 44, 13
Luminance
0.1723

At a glance

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

Hex
#df037d
Hue
327°
magenta / pink
Saturation
97%
electric
Lightness
44%
dark
Brightness
87%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1723
WCAG relative
Temperature
Warm
35/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
4.72:1
Closest name
Medium Violet Red
ΔE2000 5.9
Where it sits
Hue327° 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#df037d
RGBrgb(223, 3, 125)
HSLhsl(327, 97%, 44%)
CMYKcmyk(0%, 99%, 44%, 13%)
LABlab(48.6 77.3 -4.1)
LCHlch(48.6 77.4 357.0)
OKLCHoklch(0.588 0.239 357.6)
Decimal14615421
Display P3color(display-p3 0.875 0.012 0.490)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df037d on white: 4.72:1
AA ✓ pass · AA-large · AAA
Aa
#df037d on black: 4.45:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4C5B7F
deuteranopia · #828079
tritanopia · #F20049

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #df037d 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
#FBC1E1
#FD90CD
#FD59B4
#FC229B
#df037d
#C90371
#A1025A
#740643
#48042A
Base = 600Lightest = 50 · #FDF1F8Darkest = 950 · #48042A
:root {
  --brand-50: #FDF1F8;
  --brand-100: #FCE4F1;
  --brand-200: #FBC1E1;
  --brand-300: #FD90CD;
  --brand-400: #FD59B4;
  --brand-500: #FC229B;
  --brand-600: #df037d;
  --brand-700: #C90371;
  --brand-800: #A1025A;
  --brand-900: #740643;
  --brand-950: #48042A;
  --brand: #df037d;
  --brand-ink: #ffffff;
}

Colors that work with #df037d

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#9B4B77
Captions on the surface
Accent#00CC28
Second voice, not a rival
Dark variant#7E0247
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 #df037d

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#03DF65
Analogous left#D303DF
Analogous right#DF030F
Split-complement 1#0FDF03
Split-complement 2#03DFD3
Triadic 1#7DDF03
Triadic 2#037DDF
Tetradic#DFD303

RGB percentages

Red87.5%
Green1.2%
Blue49.0%

CMYK percentages

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

Color previews

#df037d text on a black background

contrast 4.45:1

Card sample

#df037d text on a white background

contrast 4.72:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df037d

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.

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

#df037d, answered

What color is #df037d?

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

What is the RGB value of #df037d?

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

Is #df037d a light or a dark color?

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

Should I use black or white text on #df037d?

White. It scores 4.72:1 against #df037d, versus 4.45:1 for black — AA at any size.

What is the complementary color of #df037d?

#03DF65 sits directly opposite on the wheel. Softer options are the split-complements #0FDF03 and #03DFD3, which give the same contrast with far less vibration.

What colors go well with #df037d?

For interface work: #FAF4F8 as the surface, #EDC0D9 for borders, #9B4B77 for secondary text, #00CC28 as an accent and #7E0247 for hover and pressed states. For a palette, the analogous pair #D303DF and #DF030F stays calm, while #03DF65 is the loudest partner.

What is #df037d in CMYK for printing?

cmyk(0%, 99%, 44%, 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 #df037d 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 #DF032C; nudged cooler, #E101D0.

Work with #df037d in the Color Lab