Skip to content

#d52caa

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

RGB
213, 44, 170
HSL
315°, 67%, 50%
CMYK
0, 79, 20, 17
Luminance
0.1885

At a glance

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

Hex
#d52caa
Hue
315°
magenta / pink
Saturation
67%
vivid
Lightness
50%
balanced
Brightness
84%
HSV value
Perceived
53%
weighted brightness
Luminance
0.1885
WCAG relative
Temperature
Warm
42/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
4.77:1
Closest name
Medium Violet Red
ΔE2000 7.4
Where it sits
Hue315° of 360°
Saturation67%
Lightness50%
Temperature
Warm ← → Cool42% 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#d52caa
RGBrgb(213, 44, 170)
HSLhsl(315, 67%, 50%)
CMYKcmyk(0%, 79%, 20%, 17%)
LABlab(50.5 73.7 -28.3)
LCHlch(50.5 79.0 339.0)
OKLCHoklch(0.605 0.234 340.9)
Decimal13970602
Display P3color(display-p3 0.835 0.173 0.667)

Copy-ready code

/* CSS */
color: #d52caa;
background-color: #d52caa;
/* Tailwind (arbitrary) */
class="text-[#d52caa] bg-[#d52caa]"
/* SCSS */
$brand: #d52caa;
/* SwiftUI */
Color(red: 0.835, green: 0.173, blue: 0.667)
/* Android */
Color.parseColor("#d52caa")
/* Flutter */
Color(0xFFD52CAA)
/* Python / OpenCV (BGR) */
(170, 44, 213)

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

Accessibility — WCAG contrast

Aa
#d52caa on white: 4.40:1
AA ✗ fail · AA-large · AAA
Aa
#d52caa on black: 4.77:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #3C67AD
deuteranopia · #7482A6
tritanopia · #E2316A

Color scale — 50 to 950

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

#FBF3F9
#F8E8F4
#F1CAE7
#ECA1D9
#E373C6
#DA44B4
#d52caa
#AA2287
#881B6C
#631850
#3E0F32
Base = 600Lightest = 50 · #FBF3F9Darkest = 950 · #3E0F32
:root {
  --brand-50: #FBF3F9;
  --brand-100: #F8E8F4;
  --brand-200: #F1CAE7;
  --brand-300: #ECA1D9;
  --brand-400: #E373C6;
  --brand-500: #DA44B4;
  --brand-600: #d52caa;
  --brand-700: #AA2287;
  --brand-800: #881B6C;
  --brand-900: #631850;
  --brand-950: #3E0F32;
  --brand: #d52caa;
  --brand-ink: #000000;
}

Colors that work with #d52caa

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#EDC0E1
Hairlines and dividers
Muted text#9B4B86
Captions on the surface
Accent#1EAE1F
Second voice, not a rival
Dark variant#6A1555
Hover, pressed, headers
Light variant#FBEAF6
Selected rows, tints
Dark surface#241420
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 #d52caa

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#2CD557
Analogous left#AC2CD5
Analogous right#D52C55
Split-complement 1#55D52C
Split-complement 2#2CD5AC
Triadic 1#AAD52C
Triadic 2#2CAAD5
Tetradic#D5AC2C

RGB percentages

Red83.5%
Green17.3%
Blue66.7%

CMYK percentages

Cyan0.0%
Magenta79.3%
Yellow20.2%
Key (black)16.5%

Color previews

#d52caa text on a black background

contrast 4.77:1

Card sample

#d52caa text on a white background

contrast 4.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(213, 44, 170, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(213, 44, 170, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d52caa;
background: linear-gradient(135deg, #d52caa, #D52C39);

Monochromatic scale

Palettes built from #d52caa

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.

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

#d52caa, answered

What color is #d52caa?

#d52caa is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 7.4). It sits at 315° on the hue wheel with 67% saturation and 50% lightness, which reads as warm.

What is the RGB value of #d52caa?

rgb(213, 44, 170) — 213 red, 44 green and 170 blue out of 255, or 83.5% / 17.3% / 66.7% by channel.

Is #d52caa a light or a dark color?

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

Should I use black or white text on #d52caa?

Black. It scores 4.77:1 against #d52caa, versus 4.40:1 for white — AA at any size.

What is the complementary color of #d52caa?

#2CD557 sits directly opposite on the wheel. Softer options are the split-complements #55D52C and #2CD5AC, which give the same contrast with far less vibration.

What colors go well with #d52caa?

For interface work: #FAF4F9 as the surface, #EDC0E1 for borders, #9B4B86 for secondary text, #1EAE1F as an accent and #6A1555 for hover and pressed states. For a palette, the analogous pair #AC2CD5 and #D52C55 stays calm, while #2CD557 is the loudest partner.

What is #d52caa in CMYK for printing?

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

Is #d52caa warm or cool?

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

Work with #d52caa in the Color Lab