Skip to content

#db2f97

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

RGB
219, 47, 151
HSL
324°, 71%, 52%
CMYK
0, 79, 31, 14
Luminance
0.1933

At a glance

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

Hex
#db2f97
Hue
324°
magenta / pink
Saturation
71%
vivid
Lightness
52%
balanced
Brightness
86%
HSV value
Perceived
53%
weighted brightness
Luminance
0.1933
WCAG relative
Temperature
Warm
37/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
4.87:1
Closest name
Medium Violet Red
ΔE2000 6.2
Where it sits
Hue324° of 360°
Saturation71%
Lightness52%
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#db2f97
RGBrgb(219, 47, 151)
HSLhsl(324, 71%, 52%)
CMYKcmyk(0%, 79%, 31%, 14%)
LABlab(51.1 72.0 -16.1)
LCHlch(51.1 73.8 347.4)
OKLCHoklch(0.608 0.224 349.2)
Decimal14364567
Display P3color(display-p3 0.859 0.184 0.592)

Copy-ready code

/* CSS */
color: #db2f97;
background-color: #db2f97;
/* Tailwind (arbitrary) */
class="text-[#db2f97] bg-[#db2f97]"
/* SCSS */
$brand: #db2f97;
/* SwiftUI */
Color(red: 0.859, green: 0.184, blue: 0.592)
/* Android */
Color.parseColor("#db2f97")
/* Flutter */
Color(0xFFDB2F97)
/* Python / OpenCV (BGR) */
(151, 47, 219)

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 #db2f97 · 4.87:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 4.32:1
AA fail · AA large pass · AAA fail
Aa
Black text · 4.87:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #db2f97 as text scores 4.32:1 on white and 4.87:1 on black.

Accessibility — WCAG contrast

Aa
#db2f97 on white: 4.32:1
AA ✗ fail · AA-large · AAA
Aa
#db2f97 on black: 4.87:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4D669A
deuteranopia · #808493
tritanopia · #EB2360

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #db2f97 is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FCF3F8
#F8E7F1
#F2C9E2
#EE9FCF
#E670B7
#db2f97
#D1248D
#AE1E75
#8B185E
#651646
#3F0D2B
Base = 500Lightest = 50 · #FCF3F8Darkest = 950 · #3F0D2B
:root {
  --brand-50: #FCF3F8;
  --brand-100: #F8E7F1;
  --brand-200: #F2C9E2;
  --brand-300: #EE9FCF;
  --brand-400: #E670B7;
  --brand-500: #db2f97;
  --brand-600: #D1248D;
  --brand-700: #AE1E75;
  --brand-800: #8B185E;
  --brand-900: #651646;
  --brand-950: #3F0D2B;
  --brand: #db2f97;
  --brand-ink: #000000;
}

Colors that work with #db2f97

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#FAF4F8
Tinted page background
Border#EDC0DB
Hairlines and dividers
Muted text#9B4B7B
Captions on the surface
Accent#1AB230
Second voice, not a rival
Dark variant#6D1349
Hover, pressed, headers
Light variant#FBE9F4
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 #db2f97

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#2FDB73
Analogous left#C92FDB
Analogous right#DB2F41
Split-complement 1#41DB2F
Split-complement 2#2FDBC9
Triadic 1#97DB2F
Triadic 2#2F97DB
Tetradic#DBC92F

RGB percentages

Red85.9%
Green18.4%
Blue59.2%

CMYK percentages

Cyan0.0%
Magenta78.5%
Yellow31.1%
Key (black)14.1%

Color previews

#db2f97 text on a black background

contrast 4.87:1

Card sample

#db2f97 text on a white background

contrast 4.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(219, 47, 151, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(219, 47, 151, 0.45);
Border & gradient
Gradient panel
border: 3px solid #db2f97;
background: linear-gradient(135deg, #db2f97, #DB3A2F);

Monochromatic scale

Palettes built from #db2f97

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.

#db2f97 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

Converts to four-color process without much drama. Proof it anyway.

#db2f97, answered

What color is #db2f97?

#db2f97 is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 6.2). It sits at 324° on the hue wheel with 71% saturation and 52% lightness, which reads as warm.

What is the RGB value of #db2f97?

rgb(219, 47, 151) — 219 red, 47 green and 151 blue out of 255, or 85.9% / 18.4% / 59.2% by channel.

Is #db2f97 a light or a dark color?

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

Should I use black or white text on #db2f97?

Black. It scores 4.87:1 against #db2f97, versus 4.32:1 for white — AA at any size.

What is the complementary color of #db2f97?

#2FDB73 sits directly opposite on the wheel. Softer options are the split-complements #41DB2F and #2FDBC9, which give the same contrast with far less vibration.

What colors go well with #db2f97?

For interface work: #FAF4F8 as the surface, #EDC0DB for borders, #9B4B7B for secondary text, #1AB230 as an accent and #6D1349 for hover and pressed states. For a palette, the analogous pair #C92FDB and #DB2F41 stays calm, while #2FDB73 is the loudest partner.

What is #db2f97 in CMYK for printing?

cmyk(0%, 79%, 31%, 14%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #db2f97 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 #DB2F58; nudged cooler, #DD2DD8.

Work with #db2f97 in the Color Lab