Skip to content

#d52fec

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

RGB
213, 47, 236
HSL
293°, 83%, 56%
CMYK
10, 80, 0, 8
Luminance
0.2224

At a glance

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

Hex
#d52fec
Hue
293°
magenta / pink
Saturation
83%
electric
Lightness
56%
balanced
Brightness
93%
HSV value
Perceived
57%
weighted brightness
Luminance
0.2224
WCAG relative
Temperature
Neutral
54/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
5.45:1
Closest name
Medium Orchid
ΔE2000 5.6
Where it sits
Hue293° of 360°
Saturation83%
Lightness56%
Temperature
Warm ← → Cool54% 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#d52fec
RGBrgb(213, 47, 236)
HSLhsl(293, 83%, 56%)
CMYKcmyk(10%, 80%, 0%, 8%)
LABlab(54.3 82.7 -60.3)
LCHlch(54.3 102.3 323.9)
OKLCHoklch(0.643 0.276 322.3)
Decimal13971436
Display P3color(display-p3 0.835 0.184 0.925)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d52fec on white: 3.86:1
AA ✗ fail · AA-large · AAA
Aa
#d52fec on black: 5.45:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #0076F1
deuteranopia · #4F88E8
tritanopia · #D85890

Color scale — 50 to 950

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

#FBF2FC
#F7E6FA
#F0C6F6
#EA98F6
#E065F1
#d52fec
#C814E0
#A611BB
#850E96
#610E6C
#3C0944
Base = 500Lightest = 50 · #FBF2FCDarkest = 950 · #3C0944
:root {
  --brand-50: #FBF2FC;
  --brand-100: #F7E6FA;
  --brand-200: #F0C6F6;
  --brand-300: #EA98F6;
  --brand-400: #E065F1;
  --brand-500: #d52fec;
  --brand-600: #C814E0;
  --brand-700: #A611BB;
  --brand-800: #850E96;
  --brand-900: #610E6C;
  --brand-950: #3C0944;
  --brand: #d52fec;
  --brand-ink: #000000;
}

Colors that work with #d52fec

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#E7C0ED
Hairlines and dividers
Muted text#914B9B
Captions on the surface
Accent#4FBF0D
Second voice, not a rival
Dark variant#680B75
Hover, pressed, headers
Light variant#FAE8FD
Selected rows, tints
Dark surface#221424
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 #d52fec

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#46EC2F
Analogous left#772FEC
Analogous right#EC2FA5
Split-complement 1#A5EC2F
Split-complement 2#2FEC77
Triadic 1#ECD52F
Triadic 2#2FECD5
Tetradic#EC772F

RGB percentages

Red83.5%
Green18.4%
Blue92.5%

CMYK percentages

Cyan9.7%
Magenta80.1%
Yellow0.0%
Key (black)7.5%

Color previews

#d52fec text on a black background

contrast 5.45:1

Card sample

#d52fec text on a white background

contrast 3.86:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d52fec

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.

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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#d52fec, answered

What color is #d52fec?

#d52fec is a balanced electric magenta / pink, closest to Medium Orchid (ΔE2000 5.6). It sits at 293° on the hue wheel with 83% saturation and 56% lightness, which reads as neutral.

What is the RGB value of #d52fec?

rgb(213, 47, 236) — 213 red, 47 green and 236 blue out of 255, or 83.5% / 18.4% / 92.5% by channel.

Is #d52fec a light or a dark color?

It is a mid-tone. Relative luminance is 0.2224 and perceived brightness is 57%, so black text on it reaches 5.45:1.

Should I use black or white text on #d52fec?

Black. It scores 5.45:1 against #d52fec, versus 3.86:1 for white — AA at any size.

What is the complementary color of #d52fec?

#46EC2F sits directly opposite on the wheel. Softer options are the split-complements #A5EC2F and #2FEC77, which give the same contrast with far less vibration.

What colors go well with #d52fec?

For interface work: #FAF4FA as the surface, #E7C0ED for borders, #914B9B for secondary text, #4FBF0D as an accent and #680B75 for hover and pressed states. For a palette, the analogous pair #772FEC and #EC2FA5 stays calm, while #46EC2F is the loudest partner.

What is #d52fec in CMYK for printing?

cmyk(10%, 80%, 0%, 8%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #d52fec warm or cool?

Neutral — it scores 54 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EC2FBE; nudged cooler, #902DEE.

Work with #d52fec in the Color Lab