Skip to content

#df026f

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

RGB
223, 2, 111
HSL
330°, 98%, 44%
CMYK
0, 99, 50, 13
Luminance
0.1688

At a glance

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

Hex
#df026f
Hue
330°
magenta / pink
Saturation
98%
electric
Lightness
44%
dark
Brightness
87%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1688
WCAG relative
Temperature
Warm
33/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
4.80:1
Closest name
Medium Violet Red
ΔE2000 8.3
Where it sits
Hue330° of 360°
Saturation98%
Lightness44%
Temperature
Warm ← → Cool33% 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#df026f
RGBrgb(223, 2, 111)
HSLhsl(330, 98%, 44%)
CMYKcmyk(0%, 99%, 50%, 13%)
LABlab(48.1 76.2 3.8)
LCHlch(48.1 76.3 2.9)
OKLCHoklch(0.584 0.235 2.6)
Decimal14615151
Display P3color(display-p3 0.875 0.008 0.435)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df026f on white: 4.80:1
AA ✓ pass · AA-large · AAA
Aa
#df026f on black: 4.38:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #505971
deuteranopia · #85806A
tritanopia · #F30041

Color scale — 50 to 950

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

#FDF1F7
#FCE3F0
#FBC1DD
#FE90C6
#FD58AA
#FD218D
#df026f
#CA0265
#A20151
#74063C
#490426
Base = 600Lightest = 50 · #FDF1F7Darkest = 950 · #490426
:root {
  --brand-50: #FDF1F7;
  --brand-100: #FCE3F0;
  --brand-200: #FBC1DD;
  --brand-300: #FE90C6;
  --brand-400: #FD58AA;
  --brand-500: #FD218D;
  --brand-600: #df026f;
  --brand-700: #CA0265;
  --brand-800: #A20151;
  --brand-900: #74063C;
  --brand-950: #490426;
  --brand: #df026f;
  --brand-ink: #ffffff;
}

Colors that work with #df026f

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#FAF4F7
Tinted page background
Border#EDC0D6
Hairlines and dividers
Muted text#9B4B72
Captions on the surface
Accent#00CC35
Second voice, not a rival
Dark variant#7E013F
Hover, pressed, headers
Light variant#FFE6F2
Selected rows, tints
Dark surface#24141C
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 #df026f

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#02DF72
Analogous left#DF02DD
Analogous right#DF0302
Split-complement 1#02DF03
Split-complement 2#02DDDF
Triadic 1#6FDF02
Triadic 2#026FDF
Tetradic#DDDF02

RGB percentages

Red87.5%
Green0.8%
Blue43.5%

CMYK percentages

Cyan0.0%
Magenta99.1%
Yellow50.2%
Key (black)12.5%

Color previews

#df026f text on a black background

contrast 4.38:1

Card sample

#df026f text on a white background

contrast 4.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df026f

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.

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

#df026f, answered

What color is #df026f?

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

What is the RGB value of #df026f?

rgb(223, 2, 111) — 223 red, 2 green and 111 blue out of 255, or 87.5% / 0.8% / 43.5% by channel.

Is #df026f a light or a dark color?

It is a dark color. Relative luminance is 0.1688 and perceived brightness is 50%, so white text on it reaches 4.80:1.

Should I use black or white text on #df026f?

White. It scores 4.80:1 against #df026f, versus 4.38:1 for black — AA at any size.

What is the complementary color of #df026f?

#02DF72 sits directly opposite on the wheel. Softer options are the split-complements #02DF03 and #02DDDF, which give the same contrast with far less vibration.

What colors go well with #df026f?

For interface work: #FAF4F7 as the surface, #EDC0D6 for borders, #9B4B72 for secondary text, #00CC35 as an accent and #7E013F for hover and pressed states. For a palette, the analogous pair #DF02DD and #DF0302 stays calm, while #02DF72 is the loudest partner.

What is #df026f in CMYK for printing?

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

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

Work with #df026f in the Color Lab