Skip to content

#df0791

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

RGB
223, 7, 145
HSL
322°, 94%, 45%
CMYK
0, 97, 35, 13
Luminance
0.1788

At a glance

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

Hex
#df0791
Hue
322°
magenta / pink
Saturation
94%
electric
Lightness
45%
balanced
Brightness
87%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1788
WCAG relative
Temperature
Warm
38/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
4.59:1
Closest name
Medium Violet Red
ΔE2000 4.8
Where it sits
Hue322° of 360°
Saturation94%
Lightness45%
Temperature
Warm ← → Cool38% 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#df0791
RGBrgb(223, 7, 145)
HSLhsl(322, 94%, 45%)
CMYKcmyk(0%, 97%, 35%, 13%)
LABlab(49.4 78.8 -15.0)
LCHlch(49.4 80.2 349.2)
OKLCHoklch(0.596 0.246 350.8)
Decimal14616465
Display P3color(display-p3 0.875 0.027 0.569)

Copy-ready code

/* CSS */
color: #df0791;
background-color: #df0791;
/* Tailwind (arbitrary) */
class="text-[#df0791] bg-[#df0791]"
/* SCSS */
$brand: #df0791;
/* SwiftUI */
Color(red: 0.875, green: 0.027, blue: 0.569)
/* Android */
Color.parseColor("#df0791")
/* Flutter */
Color(0xFFDF0791)
/* Python / OpenCV (BGR) */
(145, 7, 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 #df0791 · 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.58:1
AA pass · AA large pass · AAA fail
Reading the other direction: #df0791 as text scores 4.59:1 on white and 4.58:1 on black.

Accessibility — WCAG contrast

Aa
#df0791 on white: 4.59:1
AA ✓ pass · AA-large · AAA
Aa
#df0791 on black: 4.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #435F94
deuteranopia · #7E828D
tritanopia · #F10055

Color scale — 50 to 950

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

#FDF2F9
#FBE4F3
#FAC2E6
#FC92D5
#FA5CC1
#F825AC
#df0791
#C60680
#9E0567
#72084C
#47052F
Base = 600Lightest = 50 · #FDF2F9Darkest = 950 · #47052F
:root {
  --brand-50: #FDF2F9;
  --brand-100: #FBE4F3;
  --brand-200: #FAC2E6;
  --brand-300: #FC92D5;
  --brand-400: #FA5CC1;
  --brand-500: #F825AC;
  --brand-600: #df0791;
  --brand-700: #C60680;
  --brand-800: #9E0567;
  --brand-900: #72084C;
  --brand-950: #47052F;
  --brand: #df0791;
  --brand-ink: #ffffff;
}

Colors that work with #df0791

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#EDC0DC
Hairlines and dividers
Muted text#9B4B7E
Captions on the surface
Accent#02CA19
Second voice, not a rival
Dark variant#7C0450
Hover, pressed, headers
Light variant#FEE6F6
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 #df0791

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#07DF55
Analogous left#C107DF
Analogous right#DF0725
Split-complement 1#25DF07
Split-complement 2#07DFC1
Triadic 1#91DF07
Triadic 2#0791DF
Tetradic#DFC107

RGB percentages

Red87.5%
Green2.7%
Blue56.9%

CMYK percentages

Cyan0.0%
Magenta96.9%
Yellow35.0%
Key (black)12.5%

Color previews

#df0791 text on a black background

contrast 4.58:1

Card sample

#df0791 text on a white background

contrast 4.59:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #df0791

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.

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

#df0791, answered

What color is #df0791?

#df0791 is a balanced electric magenta / pink, closest to Medium Violet Red (ΔE2000 4.8). It sits at 322° on the hue wheel with 94% saturation and 45% lightness, which reads as warm.

What is the RGB value of #df0791?

rgb(223, 7, 145) — 223 red, 7 green and 145 blue out of 255, or 87.5% / 2.7% / 56.9% by channel.

Is #df0791 a light or a dark color?

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

Should I use black or white text on #df0791?

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

What is the complementary color of #df0791?

#07DF55 sits directly opposite on the wheel. Softer options are the split-complements #25DF07 and #07DFC1, which give the same contrast with far less vibration.

What colors go well with #df0791?

For interface work: #FAF4F8 as the surface, #EDC0DC for borders, #9B4B7E for secondary text, #02CA19 as an accent and #7C0450 for hover and pressed states. For a palette, the analogous pair #C107DF and #DF0725 stays calm, while #07DF55 is the loudest partner.

What is #df0791 in CMYK for printing?

cmyk(0%, 97%, 35%, 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 #df0791 warm or cool?

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

Work with #df0791 in the Color Lab