Skip to content

#df05b3

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

RGB
223, 5, 179
HSL
312°, 96%, 45%
CMYK
0, 98, 20, 13
Luminance
0.1905

At a glance

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

Hex
#df05b3
Hue
312°
magenta / pink
Saturation
96%
electric
Lightness
45%
dark
Brightness
87%
HSV value
Perceived
53%
weighted brightness
Luminance
0.1905
WCAG relative
Temperature
Neutral
43/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
4.81:1
Closest name
Medium Violet Red
ΔE2000 8.5
Where it sits
Hue312° of 360°
Saturation96%
Lightness45%
Temperature
Warm ← → Cool43% 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#df05b3
RGBrgb(223, 5, 179)
HSLhsl(312, 96%, 45%)
CMYKcmyk(0%, 98%, 20%, 13%)
LABlab(50.8 82.6 -33.1)
LCHlch(50.8 89.0 338.2)
OKLCHoklch(0.611 0.264 340.1)
Decimal14615987
Display P3color(display-p3 0.875 0.020 0.702)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#df05b3 on white: 4.37:1
AA ✗ fail · AA-large · AAA
Aa
#df05b3 on black: 4.81:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #2865B7
deuteranopia · #7284AF
tritanopia · #ED1A69

Color scale — 50 to 950

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

#FDF1FB
#FCE4F7
#FAC1EF
#FD91E7
#FB5ADB
#FA24CF
#df05b3
#C804A0
#A00480
#73075D
#48053A
Base = 600Lightest = 50 · #FDF1FBDarkest = 950 · #48053A
:root {
  --brand-50: #FDF1FB;
  --brand-100: #FCE4F7;
  --brand-200: #FAC1EF;
  --brand-300: #FD91E7;
  --brand-400: #FB5ADB;
  --brand-500: #FA24CF;
  --brand-600: #df05b3;
  --brand-700: #C804A0;
  --brand-800: #A00480;
  --brand-900: #73075D;
  --brand-950: #48053A;
  --brand: #df05b3;
  --brand-ink: #000000;
}

Colors that work with #df05b3

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#EDC0E4
Hairlines and dividers
Muted text#9B4B8B
Captions on the surface
Accent#0ACC00
Second voice, not a rival
Dark variant#7D0364
Hover, pressed, headers
Light variant#FEE6FA
Selected rows, tints
Dark surface#241421
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 #df05b3

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#05DF31
Analogous left#9E05DF
Analogous right#DF0546
Split-complement 1#46DF05
Split-complement 2#05DF9E
Triadic 1#B3DF05
Triadic 2#05B3DF
Tetradic#DF9E05

RGB percentages

Red87.5%
Green2.0%
Blue70.2%

CMYK percentages

Cyan0.0%
Magenta97.8%
Yellow19.7%
Key (black)12.5%

Color previews

#df05b3 text on a black background

contrast 4.81:1

Card sample

#df05b3 text on a white background

contrast 4.37:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df05b3

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.

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

#df05b3, answered

What color is #df05b3?

#df05b3 is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 8.5). It sits at 312° on the hue wheel with 96% saturation and 45% lightness, which reads as neutral.

What is the RGB value of #df05b3?

rgb(223, 5, 179) — 223 red, 5 green and 179 blue out of 255, or 87.5% / 2% / 70.2% by channel.

Is #df05b3 a light or a dark color?

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

Should I use black or white text on #df05b3?

Black. It scores 4.81:1 against #df05b3, versus 4.37:1 for white — AA at any size.

What is the complementary color of #df05b3?

#05DF31 sits directly opposite on the wheel. Softer options are the split-complements #46DF05 and #05DF9E, which give the same contrast with far less vibration.

What colors go well with #df05b3?

For interface work: #FAF4F9 as the surface, #EDC0E4 for borders, #9B4B8B for secondary text, #0ACC00 as an accent and #7D0364 for hover and pressed states. For a palette, the analogous pair #9E05DF and #DF0546 stays calm, while #05DF31 is the loudest partner.

What is #df05b3 in CMYK for printing?

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

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

Work with #df05b3 in the Color Lab