Skip to content

#db2ab4

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

RGB
219, 42, 180
HSL
313°, 71%, 51%
CMYK
0, 81, 18, 14
Luminance
0.2001

At a glance

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

Hex
#db2ab4
Hue
313°
magenta / pink
Saturation
71%
vivid
Lightness
51%
balanced
Brightness
86%
HSV value
Perceived
54%
weighted brightness
Luminance
0.2001
WCAG relative
Temperature
Neutral
43/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
5.00:1
Closest name
Medium Violet Red
ΔE2000 9.1
Where it sits
Hue313° of 360°
Saturation71%
Lightness51%
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#db2ab4
RGBrgb(219, 42, 180)
HSLhsl(313, 71%, 51%)
CMYKcmyk(0%, 81%, 18%, 14%)
LABlab(51.9 76.8 -32.0)
LCHlch(51.9 83.2 337.4)
OKLCHoklch(0.618 0.245 339.2)
Decimal14363316
Display P3color(display-p3 0.859 0.165 0.706)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#db2ab4 on white: 4.20:1
AA ✗ fail · AA-large · AAA
Aa
#db2ab4 on black: 5.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #376AB7
deuteranopia · #7485B0
tritanopia · #E8336F

Color scale — 50 to 950

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

#FCF3FA
#F8E7F4
#F3C9E9
#EF9FDD
#E76FCC
#DF3FBB
#db2ab4
#AF1D8F
#8C1872
#651554
#3F0D34
Base = 600Lightest = 50 · #FCF3FADarkest = 950 · #3F0D34
:root {
  --brand-50: #FCF3FA;
  --brand-100: #F8E7F4;
  --brand-200: #F3C9E9;
  --brand-300: #EF9FDD;
  --brand-400: #E76FCC;
  --brand-500: #DF3FBB;
  --brand-600: #db2ab4;
  --brand-700: #AF1D8F;
  --brand-800: #8C1872;
  --brand-900: #651554;
  --brand-950: #3F0D34;
  --brand: #db2ab4;
  --brand-ink: #000000;
}

Colors that work with #db2ab4

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#EDC0E3
Hairlines and dividers
Muted text#9B4B89
Captions on the surface
Accent#1EB319
Second voice, not a rival
Dark variant#6D1259
Hover, pressed, headers
Light variant#FBE9F7
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 #db2ab4

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#2ADB51
Analogous left#A92ADB
Analogous right#DB2A5C
Split-complement 1#5CDB2A
Split-complement 2#2ADBA9
Triadic 1#B4DB2A
Triadic 2#2AB4DB
Tetradic#DBA92A

RGB percentages

Red85.9%
Green16.5%
Blue70.6%

CMYK percentages

Cyan0.0%
Magenta80.8%
Yellow17.8%
Key (black)14.1%

Color previews

#db2ab4 text on a black background

contrast 5.00:1

Card sample

#db2ab4 text on a white background

contrast 4.20:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #db2ab4

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.

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

#db2ab4, answered

What color is #db2ab4?

#db2ab4 is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 9.1). It sits at 313° on the hue wheel with 71% saturation and 51% lightness, which reads as neutral.

What is the RGB value of #db2ab4?

rgb(219, 42, 180) — 219 red, 42 green and 180 blue out of 255, or 85.9% / 16.5% / 70.6% by channel.

Is #db2ab4 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2001 and perceived brightness is 54%, so black text on it reaches 5.00:1.

Should I use black or white text on #db2ab4?

Black. It scores 5.00:1 against #db2ab4, versus 4.20:1 for white — AA at any size.

What is the complementary color of #db2ab4?

#2ADB51 sits directly opposite on the wheel. Softer options are the split-complements #5CDB2A and #2ADBA9, which give the same contrast with far less vibration.

What colors go well with #db2ab4?

For interface work: #FAF4F9 as the surface, #EDC0E3 for borders, #9B4B89 for secondary text, #1EB319 as an accent and #6D1259 for hover and pressed states. For a palette, the analogous pair #A92ADB and #DB2A5C stays calm, while #2ADB51 is the loudest partner.

What is #db2ab4 in CMYK for printing?

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

Is #db2ab4 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 #DB2A73; nudged cooler, #C328DE.

Work with #db2ab4 in the Color Lab