Skip to content

#ac2f5f

a dark, vivid magenta / pink · warm · closest name: firebrick

RGB
172, 47, 95
HSL
337°, 57%, 43%
CMYK
0, 73, 45, 33
Luminance
0.1163

Every format

HEX#ac2f5f
RGBrgb(172, 47, 95)
HSLhsl(337, 57%, 43%)
CMYKcmyk(0%, 73%, 45%, 33%)
LABlab(40.6 53.8 1.7)
LCHlch(40.6 53.8 1.8)
OKLCHoklch(0.510 0.165 1.7)

Copy-ready code

/* CSS */
color: #ac2f5f;
background-color: #ac2f5f;
/* Tailwind (arbitrary) */
class="text-[#ac2f5f] bg-[#ac2f5f]"
/* SCSS */
$brand: #ac2f5f;
/* SwiftUI */
Color(red: 0.675, green: 0.184, blue: 0.373)
/* Android */
Color.parseColor("#ac2f5f")

Accessibility — WCAG contrast

Aa
#ac2f5f on white: 6.31:1
AA ✓ pass · AA-large · AAA
Aa
#ac2f5f on black: 3.33:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.5%
Green18.4%
Blue37.3%

CMYK percentages

Cyan0.0%
Magenta72.7%
Yellow44.8%
Key (black)32.5%

Color previews

#ac2f5f text on a black background

contrast 3.33:1

Card sample

#ac2f5f text on a white background

contrast 6.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2f5f

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ac2f5f in the Color Lab