Skip to content

#d52c6b

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

RGB
213, 44, 107
HSL
338°, 67%, 50%
CMYK
0, 79, 50, 17
Luminance
0.1701

At a glance

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

Hex
#d52c6b
Hue
338°
magenta / pink
Saturation
67%
vivid
Lightness
50%
balanced
Brightness
84%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1701
WCAG relative
Temperature
Warm
29/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
4.77:1
Closest name
Medium Violet Red
ΔE2000 9.4
Where it sits
Hue338° of 360°
Saturation67%
Lightness50%
Temperature
Warm ← → Cool29% 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#d52c6b
RGBrgb(213, 44, 107)
HSLhsl(338, 67%, 50%)
CMYKcmyk(0%, 79%, 50%, 17%)
LABlab(48.3 67.1 6.3)
LCHlch(48.3 67.4 5.3)
OKLCHoklch(0.581 0.206 4.6)
Decimal13970539
Display P3color(display-p3 0.835 0.173 0.420)

Copy-ready code

/* CSS */
color: #d52c6b;
background-color: #d52c6b;
/* Tailwind (arbitrary) */
class="text-[#d52c6b] bg-[#d52c6b]"
/* SCSS */
$brand: #d52c6b;
/* SwiftUI */
Color(red: 0.835, green: 0.173, blue: 0.420)
/* Android */
Color.parseColor("#d52c6b")
/* Flutter */
Color(0xFFD52C6B)
/* Python / OpenCV (BGR) */
(107, 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#ffffff on #d52c6b · 4.77:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 4.77:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.40:1
AA fail · AA large pass · AAA fail
Reading the other direction: #d52c6b as text scores 4.77:1 on white and 4.40:1 on black.

Accessibility — WCAG contrast

Aa
#d52c6b on white: 4.77:1
AA ✓ pass · AA-large · AAA
Aa
#d52c6b on black: 4.40:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #585D6C
deuteranopia · #847E67
tritanopia · #E80048

Color scale — 50 to 950

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

#FBF3F6
#F8E8EE
#F1CAD9
#ECA1BD
#E3739D
#DA447C
#d52c6b
#AA2255
#881B44
#631834
#3E0F20
Base = 600Lightest = 50 · #FBF3F6Darkest = 950 · #3E0F20
:root {
  --brand-50: #FBF3F6;
  --brand-100: #F8E8EE;
  --brand-200: #F1CAD9;
  --brand-300: #ECA1BD;
  --brand-400: #E3739D;
  --brand-500: #DA447C;
  --brand-600: #d52c6b;
  --brand-700: #AA2255;
  --brand-800: #881B44;
  --brand-900: #631834;
  --brand-950: #3E0F20;
  --brand: #d52c6b;
  --brand-ink: #ffffff;
}

Colors that work with #d52c6b

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#FAF4F7
Tinted page background
Border#EDC0D1
Hairlines and dividers
Muted text#9B4B69
Captions on the surface
Accent#1EAE54
Second voice, not a rival
Dark variant#6A1535
Hover, pressed, headers
Light variant#FBEAF0
Selected rows, tints
Dark surface#24141A
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 #d52c6b

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • 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#2CD596
Analogous left#D52CC0
Analogous right#D5412C
Split-complement 1#2CD541
Split-complement 2#2CC0D5
Triadic 1#6BD52C
Triadic 2#2C6BD5
Tetradic#C0D52C

RGB percentages

Red83.5%
Green17.3%
Blue42.0%

CMYK percentages

Cyan0.0%
Magenta79.3%
Yellow49.8%
Key (black)16.5%

Color previews

#d52c6b text on a black background

contrast 4.40:1

Card sample

#d52c6b text on a white background

contrast 4.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d52c6b

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.

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

#d52c6b, answered

What color is #d52c6b?

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

What is the RGB value of #d52c6b?

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

Is #d52c6b a light or a dark color?

It is a dark color. Relative luminance is 0.1701 and perceived brightness is 50%, so white text on it reaches 4.77:1.

Should I use black or white text on #d52c6b?

White. It scores 4.77:1 against #d52c6b, versus 4.40:1 for black — AA at any size.

What is the complementary color of #d52c6b?

#2CD596 sits directly opposite on the wheel. Softer options are the split-complements #2CD541 and #2CC0D5, which give the same contrast with far less vibration.

What colors go well with #d52c6b?

For interface work: #FAF4F7 as the surface, #EDC0D1 for borders, #9B4B69 for secondary text, #1EAE54 as an accent and #6A1535 for hover and pressed states. For a palette, the analogous pair #D52CC0 and #D5412C stays calm, while #2CD596 is the loudest partner.

What is #d52c6b in CMYK for printing?

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

Is #d52c6b warm or cool?

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

Work with #d52c6b in the Color Lab