#AC2F98#AC2F98

#AC2F98 is a mid, vivid purple. Relative luminance 0.131; OKLCH L 53.3% C 0.196 H 335.3°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#AC2F98
RGBrgb(172, 47, 152)
HSLhsl(310, 57%, 43%)
HSVhsv(310, 73%, 67%)
CMYKcmyk(0%, 72.7%, 11.6%, 32.5%)
CIE-LABlab(42.87, 60.93, -30.03)
CIE-LCHlch(42.87, 67.93, 333.76°)
OKLaboklab(53.34% 0.1779 -0.082)
OKLCHoklch(53.34% 0.196 335.3)
XYZxyz(23.6976, 13.0728, 30.9749)
Luminance0.1307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC2F98 #2FAC43
analogous
#812FAC #AC2F98 #AC2F59
triadic
#AC2F98 #98AC2F #2F98AC
tetradic
#AC2F98 #AC812F #2FAC43 #2F59AC
square
#AC2F98 #AC812F #2FAC43 #2F59AC
split-complementary
#AC2F98 #59AC2F #2FAC81
monochromatic
#4C1543 #7C226E #AC2F98 #CE4BB9 #DB7BCB

Accessibility & contrast

On white

5.81
#AC2F98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #AC2F98
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC2F98#FFFFFF#000000##FFFFFF
##AC2F981.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F599B
Deuteranopia (green-blind)
#5B6C95
Tritanopia (blue-blind)
#B53960
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ac2f98;
/* rgb */ color: rgb(172, 47, 152);
/* oklch */ color: oklch(53.3% 0.196 335.3);
Tailwind
colors: {
  custom: {
    50: '#c874b6',
    500: '#ac2f98',
    950: '#000000',
  },
}
SCSS
$custom: #ac2f98;
$custom-light: #c874b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ac2f98",
  "rgb": {
    "r": 172,
    "g": 47,
    "b": 152
  },
  "hsl": {
    "h": 309.6,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.5334,
    "c": 0.19591,
    "h": 335.3
  },
  "luminance": 0.13071
}

Semantic roles & 50–950 ramp

primary
#AC2F98
secondary
#74C380
accent
#E06047
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AC2F98

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

Preview Lab → · Contrast checker → · Palette generator →

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