#AC3171#AC3171

#AC3171 is a mid, vivid pink. Relative luminance 0.122; OKLCH L 51.8% C 0.170 H 352.8°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#AC3171
RGBrgb(172, 49, 113)
HSLhsl(329, 56%, 43%)
HSVhsv(329, 72%, 67%)
CMYKcmyk(0%, 71.5%, 34.3%, 32.5%)
CIE-LABlab(41.47, 54.99, -8.30)
CIE-LCHlch(41.47, 55.62, 351.42°)
OKLaboklab(51.78% 0.1683 -0.0213)
OKLCHoklch(51.78% 0.17 352.8)
XYZxyz(21.0934, 12.1620, 16.8563)
Luminance0.1216 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC3171 #31AC6C
analogous
#A931AC #AC3171 #AC3134
triadic
#AC3171 #71AC31 #3171AC
tetradic
#AC3171 #ACA931 #31AC6C #3134AC
square
#AC3171 #ACA931 #31AC6C #3134AC
split-complementary
#AC3171 #34AC31 #31ACA9
monochromatic
#4D1632 #7C2352 #AC3171 #CC4E90 #DA7DAE

Accessibility & contrast

On white

6.12
#AC3171 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#AC3171 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC3171
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC3171#FFFFFF#000000##FFFFFF
##AC31711.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#465473
Deuteranopia (green-blind)
#696A6E
Tritanopia (blue-blind)
#B9274D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ac3171;
/* rgb */ color: rgb(172, 49, 113);
/* oklch */ color: oklch(51.8% 0.170 352.8);
Tailwind
colors: {
  custom: {
    50: '#c97399',
    500: '#ac3171',
    950: '#000000',
  },
}
SCSS
$custom: #ac3171;
$custom-light: #c97399;
$custom-dark: #000000;
JSON
{
  "hex": "#ac3171",
  "rgb": {
    "r": 172,
    "g": 49,
    "b": 113
  },
  "hsl": {
    "h": 328.78,
    "s": 55.656,
    "l": 43.333
  },
  "oklch": {
    "l": 0.51781,
    "c": 0.16963,
    "h": 352.8
  },
  "luminance": 0.1216
}

Semantic roles & 50–950 ramp

primary
#AC3171
secondary
#76C39B
accent
#DF9149
background
#FCF7F9
surface
#F9EDF2
border
#D2C8CC
text
#14090E
muted
#827B7E

Preview Lab

Preview with #AC3171

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#AC3171 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva