#AC2F8A#AC2F8A

#AC2F8A is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.7% C 0.186 H 341.0°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#AC2F8A
RGBrgb(172, 47, 138)
HSLhsl(316, 57%, 43%)
HSVhsv(316, 73%, 67%)
CMYKcmyk(0%, 72.7%, 19.8%, 32.5%)
CIE-LABlab(42.22, 58.91, -22.56)
CIE-LCHlch(42.22, 63.08, 339.04°)
OKLaboklab(52.65% 0.1761 -0.0607)
OKLCHoklch(52.65% 0.186 341)
XYZxyz(22.6179, 12.6409, 25.2886)
Luminance0.1264 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC2F8A #2FAC51
analogous
#8F2FAC #AC2F8A #AC2F4B
triadic
#AC2F8A #8AAC2F #2F8AAC
tetradic
#AC2F8A #AC8F2F #2FAC51 #2F4BAC
square
#AC2F8A #AC8F2F #2FAC51 #2F4BAC
split-complementary
#AC2F8A #4BAC2F #2FAC8F
monochromatic
#4C153D #7C2263 #AC2F8A #CE4BAA #DB7BC1

Accessibility & contrast

On white

5.95
#AC2F8A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#AC2F8A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC2F8A
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC2F8A#FFFFFF#000000##FFFFFF
##AC2F8A1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39578D
Deuteranopia (green-blind)
#606B87
Tritanopia (blue-blind)
#B63259
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ac2f8a;
/* rgb */ color: rgb(172, 47, 138);
/* oklch */ color: oklch(52.7% 0.186 341.0);
Tailwind
colors: {
  custom: {
    50: '#c873ac',
    500: '#ac2f8a',
    950: '#000000',
  },
}
SCSS
$custom: #ac2f8a;
$custom-light: #c873ac;
$custom-dark: #000000;
JSON
{
  "hex": "#ac2f8a",
  "rgb": {
    "r": 172,
    "g": 47,
    "b": 138
  },
  "hsl": {
    "h": 316.32,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.52652,
    "c": 0.18632,
    "h": 341
  },
  "luminance": 0.12639
}

Semantic roles & 50–950 ramp

primary
#AC2F8A
secondary
#74C389
accent
#E07147
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#140910
muted
#827B7F

Preview Lab

Preview with #AC2F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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