Skip to content

#df049c

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

RGB
223, 4, 156
HSL
318°, 97%, 45%
CMYK
0, 98, 30, 13
Luminance
0.1818

At a glance

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

Hex
#df049c
Hue
318°
magenta / pink
Saturation
97%
electric
Lightness
45%
dark
Brightness
87%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1818
WCAG relative
Temperature
Warm
40/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
4.64:1
Closest name
Medium Violet Red
ΔE2000 5.5
Where it sits
Hue318° of 360°
Saturation97%
Lightness45%
Temperature
Warm ← → Cool40% 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#df049c
RGBrgb(223, 4, 156)
HSLhsl(318, 97%, 45%)
CMYKcmyk(0%, 98%, 30%, 13%)
LABlab(49.7 80.1 -21.1)
LCHlch(49.7 82.8 345.3)
OKLCHoklch(0.600 0.252 347.2)
Decimal14615708
Display P3color(display-p3 0.875 0.016 0.612)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df049c on white: 4.53:1
AA ✓ pass · AA-large · AAA
Aa
#df049c on black: 4.64:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #3C619F
deuteranopia · #7A8298
tritanopia · #EF005B

Color scale — 50 to 950

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

#FDF1FA
#FCE4F4
#FBC1E9
#FD91DC
#FC5ACA
#FB23B9
#df049c
#C8048C
#A00370
#740752
#480433
Base = 600Lightest = 50 · #FDF1FADarkest = 950 · #480433
:root {
  --brand-50: #FDF1FA;
  --brand-100: #FCE4F4;
  --brand-200: #FBC1E9;
  --brand-300: #FD91DC;
  --brand-400: #FC5ACA;
  --brand-500: #FB23B9;
  --brand-600: #df049c;
  --brand-700: #C8048C;
  --brand-800: #A00370;
  --brand-900: #740752;
  --brand-950: #480433;
  --brand: #df049c;
  --brand-ink: #000000;
}

Colors that work with #df049c

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#FAF4F9
Tinted page background
Border#EDC0DF
Hairlines and dividers
Muted text#9B4B82
Captions on the surface
Accent#00CC0C
Second voice, not a rival
Dark variant#7D0258
Hover, pressed, headers
Light variant#FFE6F7
Selected rows, tints
Dark surface#24141F
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 #df049c

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

Works well for
  • Body text and links on white
  • Text and icons on dark surfaces
  • 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#04DF47
Analogous left#B504DF
Analogous right#DF042E
Split-complement 1#2EDF04
Split-complement 2#04DFB5
Triadic 1#9CDF04
Triadic 2#049CDF
Tetradic#DFB504

RGB percentages

Red87.5%
Green1.6%
Blue61.2%

CMYK percentages

Cyan0.0%
Magenta98.2%
Yellow30.0%
Key (black)12.5%

Color previews

#df049c text on a black background

contrast 4.64:1

Card sample

#df049c text on a white background

contrast 4.53:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df049c

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.

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

#df049c, answered

What color is #df049c?

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

What is the RGB value of #df049c?

rgb(223, 4, 156) — 223 red, 4 green and 156 blue out of 255, or 87.5% / 1.6% / 61.2% by channel.

Is #df049c a light or a dark color?

It is a mid-tone. Relative luminance is 0.1818 and perceived brightness is 52%, so black text on it reaches 4.64:1.

Should I use black or white text on #df049c?

Black. It scores 4.64:1 against #df049c, versus 4.53:1 for white — AA at any size.

What is the complementary color of #df049c?

#04DF47 sits directly opposite on the wheel. Softer options are the split-complements #2EDF04 and #04DFB5, which give the same contrast with far less vibration.

What colors go well with #df049c?

For interface work: #FAF4F9 as the surface, #EDC0DF for borders, #9B4B82 for secondary text, #00CC0C as an accent and #7D0258 for hover and pressed states. For a palette, the analogous pair #B504DF and #DF042E stays calm, while #04DF47 is the loudest partner.

What is #df049c in CMYK for printing?

cmyk(0%, 98%, 30%, 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 #df049c warm or cool?

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

Work with #df049c in the Color Lab