Skip to content

#d52cd7

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

RGB
213, 44, 215
HSL
299°, 68%, 51%
CMYK
1, 80, 0, 16
Luminance
0.2085

At a glance

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

Hex
#d52cd7
Hue
299°
magenta / pink
Saturation
68%
vivid
Lightness
51%
balanced
Brightness
84%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2085
WCAG relative
Temperature
Neutral
50/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
Black
5.17:1
Closest name
Medium Orchid
ΔE2000 5.5
Where it sits
Hue299° of 360°
Saturation68%
Lightness51%
Temperature
Warm ← → Cool50% 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#d52cd7
RGBrgb(213, 44, 215)
HSLhsl(299, 68%, 51%)
CMYKcmyk(1%, 80%, 0%, 16%)
LABlab(52.8 80.1 -50.8)
LCHlch(52.8 94.8 327.6)
OKLCHoklch(0.628 0.264 327.6)
Decimal13970647
Display P3color(display-p3 0.835 0.173 0.843)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d52cd7 on white: 4.06:1
AA ✗ fail · AA-large · AAA
Aa
#d52cd7 on black: 5.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0070DB
deuteranopia · #5E85D3
tritanopia · #DB4C83

Color scale — 50 to 950

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

#FBF3FB
#F8E8F8
#F1CAF2
#ECA1ED
#E372E4
#D942DB
#d52cd7
#AA21AB
#881A89
#631764
#3E0E3E
Base = 600Lightest = 50 · #FBF3FBDarkest = 950 · #3E0E3E
:root {
  --brand-50: #FBF3FB;
  --brand-100: #F8E8F8;
  --brand-200: #F1CAF2;
  --brand-300: #ECA1ED;
  --brand-400: #E372E4;
  --brand-500: #D942DB;
  --brand-600: #d52cd7;
  --brand-700: #AA21AB;
  --brand-800: #881A89;
  --brand-900: #631764;
  --brand-950: #3E0E3E;
  --brand: #d52cd7;
  --brand-ink: #000000;
}

Colors that work with #d52cd7

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#FAF4FA
Tinted page background
Border#ECC0ED
Hairlines and dividers
Muted text#9A4B9B
Captions on the surface
Accent#43B01C
Second voice, not a rival
Dark variant#6A146B
Hover, pressed, headers
Light variant#FBEAFB
Selected rows, tints
Dark surface#241424
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 #d52cd7

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#2ED72C
Analogous left#802CD7
Analogous right#D72C84
Split-complement 1#84D72C
Split-complement 2#2CD780
Triadic 1#D7D52C
Triadic 2#2CD7D5
Tetradic#D7802C

RGB percentages

Red83.5%
Green17.3%
Blue84.3%

CMYK percentages

Cyan0.9%
Magenta79.5%
Yellow0.0%
Key (black)15.7%

Color previews

#d52cd7 text on a black background

contrast 5.17:1

Card sample

#d52cd7 text on a white background

contrast 4.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d52cd7

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.

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

#d52cd7, answered

What color is #d52cd7?

#d52cd7 is a balanced vivid magenta / pink, closest to Medium Orchid (ΔE2000 5.5). It sits at 299° on the hue wheel with 68% saturation and 51% lightness, which reads as neutral.

What is the RGB value of #d52cd7?

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

Is #d52cd7 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2085 and perceived brightness is 55%, so black text on it reaches 5.17:1.

Should I use black or white text on #d52cd7?

Black. It scores 5.17:1 against #d52cd7, versus 4.06:1 for white — AA at any size.

What is the complementary color of #d52cd7?

#2ED72C sits directly opposite on the wheel. Softer options are the split-complements #84D72C and #2CD780, which give the same contrast with far less vibration.

What colors go well with #d52cd7?

For interface work: #FAF4FA as the surface, #ECC0ED for borders, #9A4B9B for secondary text, #43B01C as an accent and #6A146B for hover and pressed states. For a palette, the analogous pair #802CD7 and #D72C84 stays calm, while #2ED72C is the loudest partner.

What is #d52cd7 in CMYK for printing?

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

Is #d52cd7 warm or cool?

Neutral — it scores 50 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D72C9A; nudged cooler, #972AD9.

Work with #d52cd7 in the Color Lab