#AC2F97#AC2F97

#AC2F97 is a mid, vivid pink. Relative luminance 0.130; OKLCH L 53.3% C 0.195 H 335.6°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#AC2F97
RGBrgb(172, 47, 151)
HSLhsl(310, 57%, 43%)
HSVhsv(310, 73%, 67%)
CMYKcmyk(0%, 72.7%, 12.2%, 32.5%)
CIE-LABlab(42.82, 60.78, -29.51)
CIE-LCHlch(42.82, 67.57, 334.11°)
OKLaboklab(53.29% 0.1778 -0.0805)
OKLCHoklch(53.29% 0.195 335.6)
XYZxyz(23.6160, 13.0401, 30.5454)
Luminance0.1304 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC2F97 #2FAC44
analogous
#822FAC #AC2F97 #AC2F58
triadic
#AC2F97 #97AC2F #2F97AC
tetradic
#AC2F97 #AC822F #2FAC44 #2F58AC
square
#AC2F97 #AC822F #2FAC44 #2F58AC
split-complementary
#AC2F97 #58AC2F #2FAC82
monochromatic
#4C1543 #7C226D #AC2F97 #CE4BB8 #DB7BCB

Accessibility & contrast

On white

5.82
#AC2F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#AC2F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC2F97
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC2F97#FFFFFF#000000##FFFFFF
##AC2F971.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30599A
Deuteranopia (green-blind)
#5B6C94
Tritanopia (blue-blind)
#B5385F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ac2f97;
/* rgb */ color: rgb(172, 47, 151);
/* oklch */ color: oklch(53.3% 0.195 335.6);
Tailwind
colors: {
  custom: {
    50: '#c874b6',
    500: '#ac2f97',
    950: '#000000',
  },
}
SCSS
$custom: #ac2f97;
$custom-light: #c874b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ac2f97",
  "rgb": {
    "r": 172,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 310.08,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53289,
    "c": 0.19519,
    "h": 335.6
  },
  "luminance": 0.13038
}

Semantic roles & 50–950 ramp

primary
#AC2F97
secondary
#74C381
accent
#E06147
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AC2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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