Skip to content

#d413b2

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

RGB
212, 19, 178
HSL
311°, 84%, 45%
CMYK
0, 91, 16, 17
Luminance
0.1768

At a glance

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

Hex
#d413b2
Hue
311°
magenta / pink
Saturation
84%
electric
Lightness
45%
balanced
Brightness
83%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1768
WCAG relative
Temperature
Neutral
44/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
4.63:1
Closest name
Medium Violet Red
ΔE2000 8
Where it sits
Hue311° of 360°
Saturation84%
Lightness45%
Temperature
Warm ← → Cool44% 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#d413b2
RGBrgb(212, 19, 178)
HSLhsl(311, 84%, 45%)
CMYKcmyk(0%, 91%, 16%, 17%)
LABlab(49.1 79.2 -35.2)
LCHlch(49.1 86.7 336.0)
OKLCHoklch(0.595 0.254 337.8)
Decimal13898674
Display P3color(display-p3 0.831 0.075 0.698)

Copy-ready code

/* CSS */
color: #d413b2;
background-color: #d413b2;
/* Tailwind (arbitrary) */
class="text-[#d413b2] bg-[#d413b2]"
/* SCSS */
$brand: #d413b2;
/* SwiftUI */
Color(red: 0.831, green: 0.075, blue: 0.698)
/* Android */
Color.parseColor("#d413b2")
/* Flutter */
Color(0xFFD413B2)
/* Python / OpenCV (BGR) */
(178, 19, 212)

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

Accessibility — WCAG contrast

Aa
#d413b2 on white: 4.63:1
AA ✓ pass · AA-large · AAA
Aa
#d413b2 on black: 4.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #2263B6
deuteranopia · #6B7EAE
tritanopia · #E0276A

Color scale — 50 to 950

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

#FCF2FB
#FAE6F6
#F6C5EE
#F698E5
#F165D8
#EC31CB
#d413b2
#BB119D
#960D7E
#6C0E5C
#440939
Base = 600Lightest = 50 · #FCF2FBDarkest = 950 · #440939
:root {
  --brand-50: #FCF2FB;
  --brand-100: #FAE6F6;
  --brand-200: #F6C5EE;
  --brand-300: #F698E5;
  --brand-400: #F165D8;
  --brand-500: #EC31CB;
  --brand-600: #d413b2;
  --brand-700: #BB119D;
  --brand-800: #960D7E;
  --brand-900: #6C0E5C;
  --brand-950: #440939;
  --brand: #d413b2;
  --brand-ink: #ffffff;
}

Colors that work with #d413b2

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#FAF4F9
Tinted page background
Border#EDC0E5
Hairlines and dividers
Muted text#9B4B8D
Captions on the surface
Accent#19C00C
Second voice, not a rival
Dark variant#750B62
Hover, pressed, headers
Light variant#FDE8F9
Selected rows, tints
Dark surface#241421
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 #d413b2

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

Works well for
  • Body text and links 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
  • 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#13D435
Analogous left#9613D4
Analogous right#D41351
Split-complement 1#51D413
Split-complement 2#13D496
Triadic 1#B2D413
Triadic 2#13B2D4
Tetradic#D49613

RGB percentages

Red83.1%
Green7.5%
Blue69.8%

CMYK percentages

Cyan0.0%
Magenta91.0%
Yellow16.0%
Key (black)16.9%

Color previews

#d413b2 text on a black background

contrast 4.54:1

Card sample

#d413b2 text on a white background

contrast 4.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(212, 19, 178, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(212, 19, 178, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d413b2;
background: linear-gradient(135deg, #d413b2, #D41331);

Monochromatic scale

Palettes built from #d413b2

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.

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

#d413b2, answered

What color is #d413b2?

#d413b2 is a balanced electric magenta / pink, closest to Medium Violet Red (ΔE2000 8). It sits at 311° on the hue wheel with 84% saturation and 45% lightness, which reads as neutral.

What is the RGB value of #d413b2?

rgb(212, 19, 178) — 212 red, 19 green and 178 blue out of 255, or 83.1% / 7.5% / 69.8% by channel.

Is #d413b2 a light or a dark color?

It is a dark color. Relative luminance is 0.1768 and perceived brightness is 52%, so white text on it reaches 4.63:1.

Should I use black or white text on #d413b2?

White. It scores 4.63:1 against #d413b2, versus 4.54:1 for black — AA at any size.

What is the complementary color of #d413b2?

#13D435 sits directly opposite on the wheel. Softer options are the split-complements #51D413 and #13D496, which give the same contrast with far less vibration.

What colors go well with #d413b2?

For interface work: #FAF4F9 as the surface, #EDC0E5 for borders, #9B4B8D for secondary text, #19C00C as an accent and #750B62 for hover and pressed states. For a palette, the analogous pair #9613D4 and #D41351 stays calm, while #13D435 is the loudest partner.

What is #d413b2 in CMYK for printing?

cmyk(0%, 91%, 16%, 17%). 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 #d413b2 warm or cool?

Neutral — it scores 44 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #D4136B; nudged cooler, #B111D6.

Work with #d413b2 in the Color Lab