Skip to content

#d321ac

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

RGB
211, 33, 172
HSL
313°, 73%, 48%
CMYK
0, 84, 19, 17
Luminance
0.1792

At a glance

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

Hex
#d321ac
Hue
313°
magenta / pink
Saturation
73%
vivid
Lightness
48%
balanced
Brightness
83%
HSV value
Perceived
52%
weighted brightness
Luminance
0.1792
WCAG relative
Temperature
Neutral
43/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
4.58:1
Closest name
Medium Violet Red
ΔE2000 7.2
Where it sits
Hue313° of 360°
Saturation73%
Lightness48%
Temperature
Warm ← → Cool43% 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#d321ac
RGBrgb(211, 33, 172)
HSLhsl(313, 73%, 48%)
CMYKcmyk(0%, 84%, 19%, 17%)
LABlab(49.4 76.0 -31.3)
LCHlch(49.4 82.2 337.6)
OKLCHoklch(0.596 0.242 339.5)
Decimal13836716
Display P3color(display-p3 0.827 0.129 0.675)

Copy-ready code

/* CSS */
color: #d321ac;
background-color: #d321ac;
/* Tailwind (arbitrary) */
class="text-[#d321ac] bg-[#d321ac]"
/* SCSS */
$brand: #d321ac;
/* SwiftUI */
Color(red: 0.827, green: 0.129, blue: 0.675)
/* Android */
Color.parseColor("#d321ac")
/* Flutter */
Color(0xFFD321AC)
/* Python / OpenCV (BGR) */
(172, 33, 211)

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

Accessibility — WCAG contrast

Aa
#d321ac on white: 4.58:1
AA ✓ pass · AA-large · AAA
Aa
#d321ac on black: 4.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #3164AF
deuteranopia · #6F7FA8
tritanopia · #E02B68

Color scale — 50 to 950

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

#FCF3FA
#F8E7F5
#F3C9EA
#F09EDE
#E86DCD
#E13DBD
#d321ac
#B01C90
#8D1673
#661454
#400D35
Base = 600Lightest = 50 · #FCF3FADarkest = 950 · #400D35
:root {
  --brand-50: #FCF3FA;
  --brand-100: #F8E7F5;
  --brand-200: #F3C9EA;
  --brand-300: #F09EDE;
  --brand-400: #E86DCD;
  --brand-500: #E13DBD;
  --brand-600: #d321ac;
  --brand-700: #B01C90;
  --brand-800: #8D1673;
  --brand-900: #661454;
  --brand-950: #400D35;
  --brand: #d321ac;
  --brand-ink: #ffffff;
}

Colors that work with #d321ac

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#EDC0E3
Hairlines and dividers
Muted text#9B4B89
Captions on the surface
Accent#1CB517
Second voice, not a rival
Dark variant#6E115A
Hover, pressed, headers
Light variant#FCE9F7
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 #d321ac

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#21D348
Analogous left#A121D3
Analogous right#D32153
Split-complement 1#53D321
Split-complement 2#21D3A1
Triadic 1#ACD321
Triadic 2#21ACD3
Tetradic#D3A121

RGB percentages

Red82.7%
Green12.9%
Blue67.5%

CMYK percentages

Cyan0.0%
Magenta84.4%
Yellow18.5%
Key (black)17.3%

Color previews

#d321ac text on a black background

contrast 4.58:1

Card sample

#d321ac text on a white background

contrast 4.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(211, 33, 172, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(211, 33, 172, 0.45);
Border & gradient
Gradient panel
border: 3px solid #d321ac;
background: linear-gradient(135deg, #d321ac, #D32135);

Monochromatic scale

Palettes built from #d321ac

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.

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

#d321ac, answered

What color is #d321ac?

#d321ac is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 7.2). It sits at 313° on the hue wheel with 73% saturation and 48% lightness, which reads as neutral.

What is the RGB value of #d321ac?

rgb(211, 33, 172) — 211 red, 33 green and 172 blue out of 255, or 82.7% / 12.9% / 67.5% by channel.

Is #d321ac a light or a dark color?

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

Should I use black or white text on #d321ac?

White. It scores 4.58:1 against #d321ac, versus 4.58:1 for black — AA at any size.

What is the complementary color of #d321ac?

#21D348 sits directly opposite on the wheel. Softer options are the split-complements #53D321 and #21D3A1, which give the same contrast with far less vibration.

What colors go well with #d321ac?

For interface work: #FAF4F9 as the surface, #EDC0E3 for borders, #9B4B89 for secondary text, #1CB517 as an accent and #6E115A for hover and pressed states. For a palette, the analogous pair #A121D3 and #D32153 stays calm, while #21D348 is the loudest partner.

What is #d321ac in CMYK for printing?

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

Is #d321ac warm or cool?

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

Work with #d321ac in the Color Lab