#ac2f6c
a dark, vivid magenta / pink · warm · closest name: Medium Violet Red
At a glance
Every number on this page in one read: what #ac2f6c is made of, how bright it looks, and which way it leans.
Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #ac2f6c |
| RGB | rgb(172, 47, 108) |
| HSL | hsl(331, 57%, 43%) |
| CMYK | cmyk(0%, 73%, 37%, 33%) |
| LAB | lab(41.0 55.1 -5.8) |
| LCH | lch(41.0 55.5 354.0) |
| OKLCH | oklch(0.514 0.170 355.0) |
| Decimal | 11284332 |
| Display P3 | color(display-p3 0.675 0.184 0.424) |
Copy-ready code
/* CSS */
color: #ac2f6c;
background-color: #ac2f6c;
/* Tailwind (arbitrary) */
class="text-[#ac2f6c] bg-[#ac2f6c]"
/* SCSS */
$brand: #ac2f6c;
/* SwiftUI */
Color(red: 0.675, green: 0.184, blue: 0.424)
/* Android */
Color.parseColor("#ac2f6c")
/* Flutter */
Color(0xFFAC2F6C)
/* Python / OpenCV (BGR) */
(108, 47, 172)Best text color
Only one of black and white can be right. This is the one, with the number that proves it.
Accessibility — WCAG contrast
Color scale — 50 to 950
A Tailwind-shaped ramp built around this exact hex. #ac2f6c 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.
:root {
--brand-50: #FBF4F7;
--brand-100: #F7E9F0;
--brand-200: #EFCDDD;
--brand-300: #E7A7C6;
--brand-400: #DB7BAA;
--brand-500: #CF4F8D;
--brand-600: #C03579;
--brand-700: #ac2f6c;
--brand-800: #802351;
--brand-900: #5D1D3C;
--brand-950: #3A1226;
--brand: #ac2f6c;
--brand-ink: #ffffff;
}Colors that work with #ac2f6c
Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #ac2f6c
Derived from its contrast, chroma and lightness — not from taste.
- ✓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
- ⚠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 | #2FAC6F | Directly opposite — maximum tension | |
| Analogous left | #AC2FAA | Neighbour, quieter | |
| Analogous right | #AC302F | Neighbour, quieter | |
| Split-complement 1 | #2FAC30 | Contrast without the clash | |
| Split-complement 2 | #2FAAAC | Contrast without the clash | |
| Triadic 1 | #6CAC2F | Even thirds — balanced and loud | |
| Triadic 2 | #2F6CAC | Even thirds — balanced and loud | |
| Tetradic | #AAAC2F | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#ac2f6c text on a black background
contrast 3.38:1
#ac2f6c text on a white background
contrast 6.22:1
CSS3 live lab
The quick brown fox
color: #ac2f6c;
background-color: #ac2f6c;
Glowing headline
text-shadow: 2px 2px 8px #ac2f6c;
Soft neon halo
text-shadow: 0 0 14px rgba(172, 47, 108, 0.45);
box-shadow: 0 12px 32px -8px rgba(172, 47, 108, 0.45);
border: 3px solid #ac2f6c; background: linear-gradient(135deg, #ac2f6c, #AC452F);
Monochromatic scale
Palettes built from #ac2f6c
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.
Closest color with a full write-up: Mulberry (#c54b8c) — ΔE2000 9.3 away, with its history, psychology and brand usage.
#ac2f6c in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Converts to four-color process without much drama. Proof it anyway.
#ac2f6c, answered
What color is #ac2f6c?
#ac2f6c is a dark vivid magenta / pink, closest to Medium Violet Red (ΔE2000 6.3). It sits at 331° on the hue wheel with 57% saturation and 43% lightness, which reads as warm.
What is the RGB value of #ac2f6c?
rgb(172, 47, 108) — 172 red, 47 green and 108 blue out of 255, or 67.5% / 18.4% / 42.4% by channel.
Is #ac2f6c a light or a dark color?
It is a dark color. Relative luminance is 0.1189 and perceived brightness is 42%, so white text on it reaches 6.22:1.
Should I use black or white text on #ac2f6c?
White. It scores 6.22:1 against #ac2f6c, versus 3.38:1 for black — AA at any size.
What is the complementary color of #ac2f6c?
#2FAC6F sits directly opposite on the wheel. Softer options are the split-complements #2FAC30 and #2FAAAC, which give the same contrast with far less vibration.
What colors go well with #ac2f6c?
For interface work: #FAF4F7 as the surface, #EDC0D6 for borders, #9B4B72 for secondary text, #28A449 as an accent and #641B3F for hover and pressed states. For a palette, the analogous pair #AC2FAA and #AC302F stays calm, while #2FAC6F is the loudest partner.
What is #ac2f6c in CMYK for printing?
cmyk(0%, 73%, 37%, 33%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #ac2f6c warm or cool?
Warm — it scores 33 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AC2F3E; nudged cooler, #AE2D9B.