Skip to content

#d504eb

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

RGB
213, 4, 235
HSL
294°, 97%, 47%
CMYK
9, 98, 0, 8
Luminance
0.2023

At a glance

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

Hex
#d504eb
Hue
294°
magenta / pink
Saturation
97%
electric
Lightness
47%
balanced
Brightness
92%
HSV value
Perceived
55%
weighted brightness
Luminance
0.2023
WCAG relative
Temperature
Neutral
53/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
Black
5.05:1
Closest name
Medium Orchid
ΔE2000 6.9
Where it sits
Hue294° of 360°
Saturation97%
Lightness47%
Temperature
Warm ← → Cool53% 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#d504eb
RGBrgb(213, 4, 235)
HSLhsl(294, 97%, 47%)
CMYKcmyk(9%, 98%, 0%, 8%)
LABlab(52.1 88.7 -63.2)
LCHlch(52.1 109.0 324.5)
OKLCHoklch(0.627 0.295 323.0)
Decimal13960427
Display P3color(display-p3 0.835 0.016 0.922)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#d504eb on white: 4.16:1
AA ✗ fail · AA-large · AAA
Aa
#d504eb on black: 5.05:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #006FF0
deuteranopia · #4383E7
tritanopia · #D84C8B

Color scale — 50 to 950

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

#FCF1FD
#F9E4FC
#F5C1FB
#F391FD
#ED59FC
#E722FB
#d504eb
#B603C9
#9203A1
#690774
#420448
Base = 600Lightest = 50 · #FCF1FDDarkest = 950 · #420448
:root {
  --brand-50: #FCF1FD;
  --brand-100: #F9E4FC;
  --brand-200: #F5C1FB;
  --brand-300: #F391FD;
  --brand-400: #ED59FC;
  --brand-500: #E722FB;
  --brand-600: #d504eb;
  --brand-700: #B603C9;
  --brand-800: #9203A1;
  --brand-900: #690774;
  --brand-950: #420448;
  --brand: #d504eb;
  --brand-ink: #000000;
}

Colors that work with #d504eb

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#E8C0ED
Hairlines and dividers
Muted text#934B9B
Captions on the surface
Accent#47CC00
Second voice, not a rival
Dark variant#72027D
Hover, pressed, headers
Light variant#FCE6FF
Selected rows, tints
Dark surface#231424
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 #d504eb

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#1AEB04
Analogous left#6204EB
Analogous right#EB048E
Split-complement 1#8EEB04
Split-complement 2#04EB62
Triadic 1#EBD504
Triadic 2#04EBD5
Tetradic#EB6204

RGB percentages

Red83.5%
Green1.6%
Blue92.2%

CMYK percentages

Cyan9.4%
Magenta98.3%
Yellow0.0%
Key (black)7.8%

Color previews

#d504eb text on a black background

contrast 5.05:1

Card sample

#d504eb text on a white background

contrast 4.16:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #d504eb

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.

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

#d504eb, answered

What color is #d504eb?

#d504eb is a balanced electric magenta / pink, closest to Medium Orchid (ΔE2000 6.9). It sits at 294° on the hue wheel with 97% saturation and 47% lightness, which reads as neutral.

What is the RGB value of #d504eb?

rgb(213, 4, 235) — 213 red, 4 green and 235 blue out of 255, or 83.5% / 1.6% / 92.2% by channel.

Is #d504eb a light or a dark color?

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

Should I use black or white text on #d504eb?

Black. It scores 5.05:1 against #d504eb, versus 4.16:1 for white — AA at any size.

What is the complementary color of #d504eb?

#1AEB04 sits directly opposite on the wheel. Softer options are the split-complements #8EEB04 and #04EB62, which give the same contrast with far less vibration.

What colors go well with #d504eb?

For interface work: #FAF4FA as the surface, #E8C0ED for borders, #934B9B for secondary text, #47CC00 as an accent and #72027D for hover and pressed states. For a palette, the analogous pair #6204EB and #EB048E stays calm, while #1AEB04 is the loudest partner.

What is #d504eb in CMYK for printing?

cmyk(9%, 98%, 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 #d504eb warm or cool?

Neutral — it scores 53 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #EB04AC; nudged cooler, #8102EE.

Work with #d504eb in the Color Lab