Skip to content

#ac2f91

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

RGB
172, 47, 145
HSL
313°, 57%, 43%
CMYK
0, 73, 16, 33
Luminance
0.1285

At a glance

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

Hex
#ac2f91
Hue
313°
magenta / pink
Saturation
57%
vivid
Lightness
43%
dark
Brightness
67%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1285
WCAG relative
Temperature
Neutral
43/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.88:1
Closest name
Medium Violet Red
ΔE2000 6.2
Where it sits
Hue313° of 360°
Saturation57%
Lightness43%
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#ac2f91
RGBrgb(172, 47, 145)
HSLhsl(313, 57%, 43%)
CMYKcmyk(0%, 73%, 16%, 33%)
LABlab(42.5 59.9 -26.3)
LCHlch(42.5 65.4 336.3)
OKLCHoklch(0.530 0.191 338.0)
Decimal11284369
Display P3color(display-p3 0.675 0.184 0.569)

Copy-ready code

/* CSS */
color: #ac2f91;
background-color: #ac2f91;
/* Tailwind (arbitrary) */
class="text-[#ac2f91] bg-[#ac2f91]"
/* SCSS */
$brand: #ac2f91;
/* SwiftUI */
Color(red: 0.675, green: 0.184, blue: 0.569)
/* Android */
Color.parseColor("#ac2f91")
/* Flutter */
Color(0xFFAC2F91)
/* Python / OpenCV (BGR) */
(145, 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 #ac2f91 · 5.88:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.88:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.57:1
AA fail · AA large pass · AAA fail
Reading the other direction: #ac2f91 as text scores 5.88:1 on white and 3.57:1 on black.

Accessibility — WCAG contrast

Aa
#ac2f91 on white: 5.88:1
AA ✓ pass · AA-large · AAA
Aa
#ac2f91 on black: 3.57:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #345894
deuteranopia · #5E6B8E
tritanopia · #B6355C

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ac2f91 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
#F7E9F4
#EFCDE7
#E7A7D9
#DB7BC6
#CF4FB3
#C035A2
#ac2f91
#80236C
#5D1D4F
#3A1232
Base = 700Lightest = 50 · #FBF4F9Darkest = 950 · #3A1232
:root {
  --brand-50: #FBF4F9;
  --brand-100: #F7E9F4;
  --brand-200: #EFCDE7;
  --brand-300: #E7A7D9;
  --brand-400: #DB7BC6;
  --brand-500: #CF4FB3;
  --brand-600: #C035A2;
  --brand-700: #ac2f91;
  --brand-800: #80236C;
  --brand-900: #5D1D4F;
  --brand-950: #3A1232;
  --brand: #ac2f91;
  --brand-ink: #ffffff;
}

Colors that work with #ac2f91

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#9B4B8A
Captions on the surface
Accent#2CA428
Second voice, not a rival
Dark variant#641B54
Hover, pressed, headers
Light variant#FAEBF6
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 #ac2f91

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#2FAC4A
Analogous left#882FAC
Analogous right#AC2F52
Split-complement 1#52AC2F
Split-complement 2#2FAC88
Triadic 1#91AC2F
Triadic 2#2F91AC
Tetradic#AC882F

RGB percentages

Red67.5%
Green18.4%
Blue56.9%

CMYK percentages

Cyan0.0%
Magenta72.7%
Yellow15.7%
Key (black)32.5%

Color previews

#ac2f91 text on a black background

contrast 3.57:1

Card sample

#ac2f91 text on a white background

contrast 5.88:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2f91

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.

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

#ac2f91, answered

What color is #ac2f91?

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

What is the RGB value of #ac2f91?

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

Is #ac2f91 a light or a dark color?

It is a dark color. Relative luminance is 0.1285 and perceived brightness is 44%, so white text on it reaches 5.88:1.

Should I use black or white text on #ac2f91?

White. It scores 5.88:1 against #ac2f91, versus 3.57:1 for black — AA at any size.

What is the complementary color of #ac2f91?

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

What colors go well with #ac2f91?

For interface work: #FAF4F9 as the surface, #EDC0E3 for borders, #9B4B8A for secondary text, #2CA428 as an accent and #641B54 for hover and pressed states. For a palette, the analogous pair #882FAC and #AC2F52 stays calm, while #2FAC4A is the loudest partner.

What is #ac2f91 in CMYK for printing?

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

Is #ac2f91 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 #AC2F63; nudged cooler, #9B2DAE.

Work with #ac2f91 in the Color Lab