Skip to content

#ad2f7c

a dark, vivid magenta / pink · warm · closest name: Medium Violet Red

RGB
173, 47, 124
HSL
323°, 57%, 43%
CMYK
0, 73, 28, 32
Luminance
0.1237

At a glance

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

Hex
#ad2f7c
Hue
323°
magenta / pink
Saturation
57%
vivid
Lightness
43%
dark
Brightness
68%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1237
WCAG relative
Temperature
Warm
37/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
6.04:1
Closest name
Medium Violet Red
ΔE2000 4.5
Where it sits
Hue323° of 360°
Saturation57%
Lightness43%
Temperature
Warm ← → Cool37% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#ad2f7c
RGBrgb(173, 47, 124)
HSLhsl(323, 57%, 43%)
CMYKcmyk(0%, 73%, 28%, 32%)
LABlab(41.8 57.3 -14.6)
LCHlch(41.8 59.1 345.7)
OKLCHoklch(0.522 0.178 347.6)
Decimal11349884
Display P3color(display-p3 0.678 0.184 0.486)

Copy-ready code

/* CSS */
color: #ad2f7c;
background-color: #ad2f7c;
/* Tailwind (arbitrary) */
class="text-[#ad2f7c] bg-[#ad2f7c]"
/* SCSS */
$brand: #ad2f7c;
/* SwiftUI */
Color(red: 0.678, green: 0.184, blue: 0.486)
/* Android */
Color.parseColor("#ad2f7c")
/* Flutter */
Color(0xFFAD2F7C)
/* Python / OpenCV (BGR) */
(124, 47, 173)

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

Accessibility — WCAG contrast

Aa
#ad2f7c on white: 6.04:1
AA ✓ pass · AA-large · AAA
Aa
#ad2f7c on black: 3.47:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #41557E
deuteranopia · #666B79
tritanopia · #B92A51

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ad2f7c is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FBF4F8
#F7E9F1
#EFCDE2
#E7A7CE
#DB7BB6
#CF4F9D
#C1348A
#ad2f7c
#80235C
#5D1D44
#3A122B
Base = 700Lightest = 50 · #FBF4F8Darkest = 950 · #3A122B
:root {
  --brand-50: #FBF4F8;
  --brand-100: #F7E9F1;
  --brand-200: #EFCDE2;
  --brand-300: #E7A7CE;
  --brand-400: #DB7BB6;
  --brand-500: #CF4F9D;
  --brand-600: #C1348A;
  --brand-700: #ad2f7c;
  --brand-800: #80235C;
  --brand-900: #5D1D44;
  --brand-950: #3A122B;
  --brand: #ad2f7c;
  --brand-ink: #ffffff;
}

Colors that work with #ad2f7c

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#FAF4F8
Tinted page background
Border#EDC0DB
Hairlines and dividers
Muted text#9B4B7C
Captions on the surface
Accent#28A439
Second voice, not a rival
Dark variant#641B48
Hover, pressed, headers
Light variant#FAEBF4
Selected rows, tints
Dark surface#24141E
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 #ad2f7c

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

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • 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#2FAD60
Analogous left#9F2FAD
Analogous right#AD2F3D
Split-complement 1#3DAD2F
Split-complement 2#2FAD9F
Triadic 1#7CAD2F
Triadic 2#2F7CAD
Tetradic#AD9F2F

RGB percentages

Red67.8%
Green18.4%
Blue48.6%

CMYK percentages

Cyan0.0%
Magenta72.8%
Yellow28.3%
Key (black)32.2%

Color previews

#ad2f7c text on a black background

contrast 3.47:1

Card sample

#ad2f7c text on a white background

contrast 6.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ad2f7c

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.

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

#ad2f7c, answered

What color is #ad2f7c?

#ad2f7c is a dark vivid magenta / pink, closest to Medium Violet Red (ΔE2000 4.5). It sits at 323° on the hue wheel with 57% saturation and 43% lightness, which reads as warm.

What is the RGB value of #ad2f7c?

rgb(173, 47, 124) — 173 red, 47 green and 124 blue out of 255, or 67.8% / 18.4% / 48.6% by channel.

Is #ad2f7c a light or a dark color?

It is a dark color. Relative luminance is 0.1237 and perceived brightness is 43%, so white text on it reaches 6.04:1.

Should I use black or white text on #ad2f7c?

White. It scores 6.04:1 against #ad2f7c, versus 3.47:1 for black — AA at any size.

What is the complementary color of #ad2f7c?

#2FAD60 sits directly opposite on the wheel. Softer options are the split-complements #3DAD2F and #2FAD9F, which give the same contrast with far less vibration.

What colors go well with #ad2f7c?

For interface work: #FAF4F8 as the surface, #EDC0DB for borders, #9B4B7C for secondary text, #28A439 as an accent and #641B48 for hover and pressed states. For a palette, the analogous pair #9F2FAD and #AD2F3D stays calm, while #2FAD60 is the loudest partner.

What is #ad2f7c in CMYK for printing?

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

Is #ad2f7c warm or cool?

Warm — it scores 37 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AD2F4E; nudged cooler, #AF2DAC.

Work with #ad2f7c in the Color Lab