#AC1F9A#AC1F9A

#AC1F9A is a mid, highly saturated purple. Relative luminance 0.121; OKLCH L 52.3% C 0.213 H 334.3°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#AC1F9A
RGBrgb(172, 31, 154)
HSLhsl(308, 69%, 40%)
HSVhsv(308, 82%, 67%)
CMYKcmyk(0%, 82%, 10.5%, 32.5%)
CIE-LABlab(41.35, 65.88, -33.63)
CIE-LCHlch(41.35, 73.97, 332.96°)
OKLaboklab(52.28% 0.1918 -0.0922)
OKLCHoklch(52.28% 0.213 334.3)
XYZxyz(23.3363, 12.0859, 31.6694)
Luminance0.1208 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AC1F9A #1FAC31
analogous
#781FAC #AC1F9A #AC1F53
triadic
#AC1F9A #9AAC1F #1F9AAC
tetradic
#AC1F9A #AC781F #1FAC31 #1F53AC
square
#AC1F9A #AC781F #1FAC31 #1F53AC
split-complementary
#AC1F9A #53AC1F #1FAC78
monochromatic
#440C3D #78166C #AC1F9A #D92FC4 #E363D2

Accessibility & contrast

On white

6.15
#AC1F9A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#AC1F9A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AC1F9A
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AC1F9A#FFFFFF#000000##FFFFFF
##AC1F9A1.006.153.426.15
#FFFFFF6.151.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B559D
Deuteranopia (green-blind)
#546997
Tritanopia (blue-blind)
#B42F5D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #ac1f9a;
/* rgb */ color: rgb(172, 31, 154);
/* oklch */ color: oklch(52.3% 0.213 334.3);
Tailwind
colors: {
  custom: {
    50: '#c96eb8',
    500: '#ac1f9a',
    950: '#000000',
  },
}
SCSS
$custom: #ac1f9a;
$custom-light: #c96eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#ac1f9a",
  "rgb": {
    "r": 172,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 307.66,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.52281,
    "c": 0.21282,
    "h": 334.3
  },
  "luminance": 0.12084
}

Semantic roles & 50–950 ramp

primary
#AC1F9A
secondary
#5FC86C
accent
#EC523C
background
#FCF7FB
surface
#F9EDF6
border
#D2C8D0
text
#140811
muted
#827B80

Preview Lab

Preview with #AC1F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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