Skip to content

#ac2f87

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

RGB
172, 47, 135
HSL
318°, 57%, 43%
CMYK
0, 73, 22, 33
Luminance
0.1255

At a glance

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

Hex
#ac2f87
Hue
318°
magenta / pink
Saturation
57%
vivid
Lightness
43%
dark
Brightness
67%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1255
WCAG relative
Temperature
Warm
40/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.98:1
Closest name
Medium Violet Red
ΔE2000 5.1
Where it sits
Hue318° of 360°
Saturation57%
Lightness43%
Temperature
Warm ← → Cool40% 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#ac2f87
RGBrgb(172, 47, 135)
HSLhsl(318, 57%, 43%)
CMYKcmyk(0%, 73%, 22%, 33%)
LABlab(42.1 58.5 -20.9)
LCHlch(42.1 62.1 340.3)
OKLCHoklch(0.525 0.184 342.3)
Decimal11284359
Display P3color(display-p3 0.675 0.184 0.529)

Copy-ready code

/* CSS */
color: #ac2f87;
background-color: #ac2f87;
/* Tailwind (arbitrary) */
class="text-[#ac2f87] bg-[#ac2f87]"
/* SCSS */
$brand: #ac2f87;
/* SwiftUI */
Color(red: 0.675, green: 0.184, blue: 0.529)
/* Android */
Color.parseColor("#ac2f87")
/* Flutter */
Color(0xFFAC2F87)
/* Python / OpenCV (BGR) */
(135, 47, 172)

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

Accessibility — WCAG contrast

Aa
#ac2f87 on white: 5.98:1
AA ✓ pass · AA-large · AAA
Aa
#ac2f87 on black: 3.51:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3B5689
deuteranopia · #616B84
tritanopia · #B73057

Color scale — 50 to 950

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

#FBF4F9
#F7E9F2
#EFCDE5
#E7A7D4
#DB7BBE
#CF4FA9
#C03597
#ac2f87
#802365
#5D1D4A
#3A122E
Base = 700Lightest = 50 · #FBF4F9Darkest = 950 · #3A122E
:root {
  --brand-50: #FBF4F9;
  --brand-100: #F7E9F2;
  --brand-200: #EFCDE5;
  --brand-300: #E7A7D4;
  --brand-400: #DB7BBE;
  --brand-500: #CF4FA9;
  --brand-600: #C03597;
  --brand-700: #ac2f87;
  --brand-800: #802365;
  --brand-900: #5D1D4A;
  --brand-950: #3A122E;
  --brand: #ac2f87;
  --brand-ink: #ffffff;
}

Colors that work with #ac2f87

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#EDC0DF
Hairlines and dividers
Muted text#9B4B83
Captions on the surface
Accent#28A42E
Second voice, not a rival
Dark variant#641B4F
Hover, pressed, headers
Light variant#FAEBF5
Selected rows, tints
Dark surface#24141F
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 #ac2f87

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#2FAC54
Analogous left#922FAC
Analogous right#AC2F48
Split-complement 1#48AC2F
Split-complement 2#2FAC92
Triadic 1#87AC2F
Triadic 2#2F87AC
Tetradic#AC922F

RGB percentages

Red67.5%
Green18.4%
Blue52.9%

CMYK percentages

Cyan0.0%
Magenta72.7%
Yellow21.5%
Key (black)32.5%

Color previews

#ac2f87 text on a black background

contrast 3.51:1

Card sample

#ac2f87 text on a white background

contrast 5.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2f87

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.

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

#ac2f87, answered

What color is #ac2f87?

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

What is the RGB value of #ac2f87?

rgb(172, 47, 135) — 172 red, 47 green and 135 blue out of 255, or 67.5% / 18.4% / 52.9% by channel.

Is #ac2f87 a light or a dark color?

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

Should I use black or white text on #ac2f87?

White. It scores 5.98:1 against #ac2f87, versus 3.51:1 for black — AA at any size.

What is the complementary color of #ac2f87?

#2FAC54 sits directly opposite on the wheel. Softer options are the split-complements #48AC2F and #2FAC92, which give the same contrast with far less vibration.

What colors go well with #ac2f87?

For interface work: #FAF4F9 as the surface, #EDC0DF for borders, #9B4B83 for secondary text, #28A42E as an accent and #641B4F for hover and pressed states. For a palette, the analogous pair #922FAC and #AC2F48 stays calm, while #2FAC54 is the loudest partner.

What is #ac2f87 in CMYK for printing?

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

Is #ac2f87 warm or cool?

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

Work with #ac2f87 in the Color Lab