#AC1F9D#AC1F9D

#AC1F9D is a mid, highly saturated purple. Relative luminance 0.122; OKLCH L 52.4% C 0.215 H 333.2°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#AC1F9D
RGBrgb(172, 31, 157)
HSLhsl(306, 69%, 40%)
HSVhsv(306, 82%, 67%)
CMYKcmyk(0%, 82%, 8.7%, 32.5%)
CIE-LABlab(41.51, 66.32, -35.19)
CIE-LCHlch(41.51, 75.08, 332.05°)
OKLaboklab(52.45% 0.1919 -0.0967)
OKLCHoklch(52.45% 0.215 333.2)
XYZxyz(23.5892, 12.1870, 33.0017)
Luminance0.1218 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC1F9D #1FAC2E
analogous
#751FAC #AC1F9D #AC1F57
triadic
#AC1F9D #9DAC1F #1F9DAC
tetradic
#AC1F9D #AC751F #1FAC2E #1F57AC
square
#AC1F9D #AC751F #1FAC2E #1F57AC
split-complementary
#AC1F9D #57AC1F #1FAC75
monochromatic
#440C3E #78166E #AC1F9D #D92FC7 #E363D5

Accessibility & contrast

On white

6.11
#AC1F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#AC1F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC1F9D
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC1F9D#FFFFFF#000000##FFFFFF
##AC1F9D1.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1655A0
Deuteranopia (green-blind)
#53699A
Tritanopia (blue-blind)
#B4315F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ac1f9d;
/* rgb */ color: rgb(172, 31, 157);
/* oklch */ color: oklch(52.4% 0.215 333.2);
Tailwind
colors: {
  custom: {
    50: '#c96eba',
    500: '#ac1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #ac1f9d;
$custom-light: #c96eba;
$custom-dark: #000000;
JSON
{
  "hex": "#ac1f9d",
  "rgb": {
    "r": 172,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 306.383,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.52447,
    "c": 0.21488,
    "h": 333.2
  },
  "luminance": 0.12185
}

Semantic roles & 50–950 ramp

primary
#AC1F9D
secondary
#5FC86A
accent
#EC4E3C
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140812
muted
#827B81

Preview Lab

Preview with #AC1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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