#AC2D98#AC2D98

#AC2D98 is a mid, vivid purple. Relative luminance 0.129; OKLCH L 53.2% C 0.198 H 335.2°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#AC2D98
RGBrgb(172, 45, 152)
HSLhsl(309, 59%, 43%)
HSVhsv(309, 74%, 67%)
CMYKcmyk(0%, 73.8%, 11.6%, 32.5%)
CIE-LABlab(42.64, 61.60, -30.40)
CIE-LCHlch(42.64, 68.70, 333.73°)
OKLaboklab(53.17% 0.1799 -0.083)
OKLCHoklch(53.17% 0.198 335.2)
XYZxyz(23.6194, 12.9165, 30.9489)
Luminance0.1291 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC2D98 #2DAC41
analogous
#812DAC #AC2D98 #AC2D58
triadic
#AC2D98 #98AC2D #2D98AC
tetradic
#AC2D98 #AC812D #2DAC41 #2D58AC
square
#AC2D98 #AC812D #2DAC41 #2D58AC
split-complementary
#AC2D98 #58AC2D #2DAC81
monochromatic
#4B1442 #7B206D #AC2D98 #CF47BA #DC78CC

Accessibility & contrast

On white

5.86
#AC2D98 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#AC2D98 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC2D98
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC2D98#FFFFFF#000000##FFFFFF
##AC2D981.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D599B
Deuteranopia (green-blind)
#5A6B95
Tritanopia (blue-blind)
#B5375F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #ac2d98;
/* rgb */ color: rgb(172, 45, 152);
/* oklch */ color: oklch(53.2% 0.198 335.2);
Tailwind
colors: {
  custom: {
    50: '#c873b6',
    500: '#ac2d98',
    950: '#000000',
  },
}
SCSS
$custom: #ac2d98;
$custom-light: #c873b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ac2d98",
  "rgb": {
    "r": 172,
    "g": 45,
    "b": 152
  },
  "hsl": {
    "h": 309.449,
    "s": 58.525,
    "l": 42.549
  },
  "oklch": {
    "l": 0.5317,
    "c": 0.19814,
    "h": 335.2
  },
  "luminance": 0.12914
}

Semantic roles & 50–950 ramp

primary
#AC2D98
secondary
#71C47E
accent
#E25F46
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140911
muted
#827B80

Preview Lab

Preview with #AC2D98

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

Preview Lab → · Contrast checker → · Palette generator →

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