Skip to content

#df08ac

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

RGB
223, 8, 172
HSL
314°, 93%, 45%
CMYK
0, 96, 23, 13
Luminance
0.1884

At a glance

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

Hex
#df08ac
Hue
314°
magenta / pink
Saturation
93%
electric
Lightness
45%
balanced
Brightness
87%
HSV value
Perceived
53%
weighted brightness
Luminance
0.1884
WCAG relative
Temperature
Neutral
42/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
4.77:1
Closest name
Medium Violet Red
ΔE2000 7.5
Where it sits
Hue314° of 360°
Saturation93%
Lightness45%
Temperature
Warm ← → Cool42% cool

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

Every format

HEX#df08ac
RGBrgb(223, 8, 172)
HSLhsl(314, 93%, 45%)
CMYKcmyk(0%, 96%, 23%, 13%)
LABlab(50.5 81.6 -29.4)
LCHlch(50.5 86.7 340.2)
OKLCHoklch(0.608 0.259 342.2)
Decimal14616748
Display P3color(display-p3 0.875 0.031 0.675)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df08ac on white: 4.40:1
AA ✗ fail · AA-large · AAA
Aa
#df08ac on black: 4.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #3164AF
deuteranopia · #7583A8
tritanopia · #EE1065

Color scale — 50 to 950

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

#FDF2FA
#FBE4F6
#F9C2EC
#FB93E2
#F95DD4
#F726C6
#df08ac
#C50798
#9E067A
#720959
#470538
Base = 600Lightest = 50 · #FDF2FADarkest = 950 · #470538
:root {
  --brand-50: #FDF2FA;
  --brand-100: #FBE4F6;
  --brand-200: #F9C2EC;
  --brand-300: #FB93E2;
  --brand-400: #F95DD4;
  --brand-500: #F726C6;
  --brand-600: #df08ac;
  --brand-700: #C50798;
  --brand-800: #9E067A;
  --brand-900: #720959;
  --brand-950: #470538;
  --brand: #df08ac;
  --brand-ink: #000000;
}

Colors that work with #df08ac

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#EDC0E2
Hairlines and dividers
Muted text#9B4B88
Captions on the surface
Accent#05C903
Second voice, not a rival
Dark variant#7B045F
Hover, pressed, headers
Light variant#FEE6F9
Selected rows, tints
Dark surface#241420
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 #df08ac

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

Works well for
  • Headings from 24px up 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
  • Small text on white — under 4.5:1
  • 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#08DF3B
Analogous left#A608DF
Analogous right#DF0841
Split-complement 1#41DF08
Split-complement 2#08DFA6
Triadic 1#ACDF08
Triadic 2#08ACDF
Tetradic#DFA608

RGB percentages

Red87.5%
Green3.1%
Blue67.5%

CMYK percentages

Cyan0.0%
Magenta96.4%
Yellow22.9%
Key (black)12.5%

Color previews

#df08ac text on a black background

contrast 4.77:1

Card sample

#df08ac text on a white background

contrast 4.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df08ac

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.

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

#df08ac, answered

What color is #df08ac?

#df08ac is a balanced electric magenta / pink, closest to Medium Violet Red (ΔE2000 7.5). It sits at 314° on the hue wheel with 93% saturation and 45% lightness, which reads as neutral.

What is the RGB value of #df08ac?

rgb(223, 8, 172) — 223 red, 8 green and 172 blue out of 255, or 87.5% / 3.1% / 67.5% by channel.

Is #df08ac a light or a dark color?

It is a mid-tone. Relative luminance is 0.1884 and perceived brightness is 53%, so black text on it reaches 4.77:1.

Should I use black or white text on #df08ac?

Black. It scores 4.77:1 against #df08ac, versus 4.40:1 for white — AA at any size.

What is the complementary color of #df08ac?

#08DF3B sits directly opposite on the wheel. Softer options are the split-complements #41DF08 and #08DFA6, which give the same contrast with far less vibration.

What colors go well with #df08ac?

For interface work: #FAF4F9 as the surface, #EDC0E2 for borders, #9B4B88 for secondary text, #05C903 as an accent and #7B045F for hover and pressed states. For a palette, the analogous pair #A608DF and #DF0841 stays calm, while #08DF3B is the loudest partner.

What is #df08ac in CMYK for printing?

cmyk(0%, 96%, 23%, 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 #df08ac warm or cool?

Neutral — it scores 42 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DF085D; nudged cooler, #C506E1.

Work with #df08ac in the Color Lab