Skip to content

#df0d8c

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

RGB
223, 13, 140
HSL
324°, 89%, 46%
CMYK
0, 94, 37, 13
Luminance
0.1787

At a glance

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

Hex
#df0d8c
Hue
324°
magenta / pink
Saturation
89%
electric
Lightness
46%
balanced
Brightness
87%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1787
WCAG relative
Temperature
Warm
37/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
4.59:1
Closest name
Medium Violet Red
ΔE2000 5
Where it sits
Hue324° of 360°
Saturation89%
Lightness46%
Temperature
Warm ← → Cool37% 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#df0d8c
RGBrgb(223, 13, 140)
HSLhsl(324, 89%, 46%)
CMYKcmyk(0%, 94%, 37%, 13%)
LABlab(49.3 77.8 -12.1)
LCHlch(49.3 78.7 351.2)
OKLCHoklch(0.596 0.242 352.6)
Decimal14617996
Display P3color(display-p3 0.875 0.051 0.549)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df0d8c on white: 4.59:1
AA ✓ pass · AA-large · AAA
Aa
#df0d8c on black: 4.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #475F8F
deuteranopia · #808288
tritanopia · #F10053

Color scale — 50 to 950

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

#FDF2F8
#FBE5F2
#F8C4E3
#F995D1
#F660BB
#F32BA4
#df0d8c
#C10B79
#9A0961
#6F0B48
#46072D
Base = 600Lightest = 50 · #FDF2F8Darkest = 950 · #46072D
:root {
  --brand-50: #FDF2F8;
  --brand-100: #FBE5F2;
  --brand-200: #F8C4E3;
  --brand-300: #F995D1;
  --brand-400: #F660BB;
  --brand-500: #F32BA4;
  --brand-600: #df0d8c;
  --brand-700: #C10B79;
  --brand-800: #9A0961;
  --brand-900: #6F0B48;
  --brand-950: #46072D;
  --brand: #df0d8c;
  --brand-ink: #ffffff;
}

Colors that work with #df0d8c

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#EDC0DB
Hairlines and dividers
Muted text#9B4B7B
Captions on the surface
Accent#07C523
Second voice, not a rival
Dark variant#78074C
Hover, pressed, headers
Light variant#FEE7F5
Selected rows, tints
Dark surface#24141E
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 #df0d8c

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
  • Brand accents, badges and data highlights
Use with care
  • 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#0DDF60
Analogous left#C90DDF
Analogous right#DF0D23
Split-complement 1#23DF0D
Split-complement 2#0DDFC9
Triadic 1#8CDF0D
Triadic 2#0D8CDF
Tetradic#DFC90D

RGB percentages

Red87.5%
Green5.1%
Blue54.9%

CMYK percentages

Cyan0.0%
Magenta94.2%
Yellow37.2%
Key (black)12.5%

Color previews

#df0d8c text on a black background

contrast 4.57:1

Card sample

#df0d8c text on a white background

contrast 4.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df0d8c

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.

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

#df0d8c, answered

What color is #df0d8c?

#df0d8c is a balanced electric magenta / pink, closest to Medium Violet Red (ΔE2000 5). It sits at 324° on the hue wheel with 89% saturation and 46% lightness, which reads as warm.

What is the RGB value of #df0d8c?

rgb(223, 13, 140) — 223 red, 13 green and 140 blue out of 255, or 87.5% / 5.1% / 54.9% by channel.

Is #df0d8c a light or a dark color?

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

Should I use black or white text on #df0d8c?

White. It scores 4.59:1 against #df0d8c, versus 4.57:1 for black — AA at any size.

What is the complementary color of #df0d8c?

#0DDF60 sits directly opposite on the wheel. Softer options are the split-complements #23DF0D and #0DDFC9, which give the same contrast with far less vibration.

What colors go well with #df0d8c?

For interface work: #FAF4F8 as the surface, #EDC0DB for borders, #9B4B7B for secondary text, #07C523 as an accent and #78074C for hover and pressed states. For a palette, the analogous pair #C90DDF and #DF0D23 stays calm, while #0DDF60 is the loudest partner.

What is #df0d8c in CMYK for printing?

cmyk(0%, 94%, 37%, 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 #df0d8c warm or cool?

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

Work with #df0d8c in the Color Lab